Fix small problem with create_key_data()
authorPaul Park <pjpark@mit.edu>
Mon, 31 Jul 1995 20:02:30 +0000 (20:02 +0000)
committerPaul Park <pjpark@mit.edu>
Mon, 31 Jul 1995 20:02:30 +0000 (20:02 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6365 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kdb/ChangeLog
src/lib/kdb/kdb_xdr.c

index 1d06c1db307d7328c794e819704cdc9e230f49b2..f6ba9a0d0f508cf3fac96c43cb5bdeb346374ad6 100644 (file)
@@ -1,4 +1,9 @@
 
+Mon Jul 31 15:55:46 EDT 1995   Paul Park       (pjpark@mit.edu)
+       * kdb_xdr.c - Correctly parenthesize realloc() expression in create_key
+               _data().
+
+
 Thu Jul 27 15:28:41 EDT 1995   Paul Park       (pjpark@mit.edu)
        * kdbint.h - Obsolete.
 
index 2987a6a6f6ee359b16aa6e8aaad7689f285bbb02..bae6fea8feb541ac9bbe23e5a866167d5acf5574 100644 (file)
@@ -33,7 +33,7 @@ krb5_dbe_create_key_data(context, entry)
 {
     if (entry->n_key_data) {
        if (entry->key_data = (krb5_key_data *)realloc(entry->key_data, 
-                               sizeof(krb5_key_data) * entry->n_key_data + 1))
+                               sizeof(krb5_key_data) * (entry->n_key_data + 1)))
            memset(entry->key_data + entry->n_key_data,0,sizeof(krb5_key_data));
        else 
            return ENOMEM;