From 9a12a0af6c65e74fc4437bc19d54cff46bedd960 Mon Sep 17 00:00:00 2001 From: Paul Park Date: Mon, 31 Jul 1995 20:02:30 +0000 Subject: [PATCH] Fix small problem with create_key_data() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6365 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kdb/ChangeLog | 5 +++++ src/lib/kdb/kdb_xdr.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/kdb/ChangeLog b/src/lib/kdb/ChangeLog index 1d06c1db3..f6ba9a0d0 100644 --- a/src/lib/kdb/ChangeLog +++ b/src/lib/kdb/ChangeLog @@ -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. diff --git a/src/lib/kdb/kdb_xdr.c b/src/lib/kdb/kdb_xdr.c index 2987a6a6f..bae6fea8f 100644 --- a/src/lib/kdb/kdb_xdr.c +++ b/src/lib/kdb/kdb_xdr.c @@ -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; -- 2.26.2