From 30a67999aac0717b5868dbf8683bdb8b65af5d87 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Wed, 20 Dec 1995 02:02:55 +0000 Subject: [PATCH] Missing parenthesis meant that wrong number of bytes was being allocated. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7240 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 5 +++++ src/lib/krb5/krb/rd_cred.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index d7909972a..e9bb577a2 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +Tue Dec 19 17:15:40 1995 Theodore Y. Ts'o + + * rd_cred.c (krb5_rd_cred_basic): Missing parenthesis meant that + wrong number of bytes was being allocated. + Sun Dec 3 11:49:09 1995 Ezra Peisach * Makefile.in (SRCS/OBJS): Move compat_recv.c to krb5util library. diff --git a/src/lib/krb5/krb/rd_cred.c b/src/lib/krb5/krb/rd_cred.c index 44ffdfd9a..a1775f141 100644 --- a/src/lib/krb5/krb/rd_cred.c +++ b/src/lib/krb5/krb/rd_cred.c @@ -129,7 +129,8 @@ krb5_rd_cred_basic(context, pcreddata, pkeyblock, local_addr, remote_addr, for (ncreds = 0; pcred->tickets[ncreds]; ncreds++); if ((*pppcreds = - (krb5_creds **)malloc((size_t)(sizeof(krb5_creds *) * ncreds + 1))) == NULL) { + (krb5_creds **)malloc((size_t)(sizeof(krb5_creds *) * + (ncreds + 1)))) == NULL) { retval = ENOMEM; goto cleanup_cred; } -- 2.26.2