Missing parenthesis meant that wrong number of bytes was being
authorTheodore Tso <tytso@mit.edu>
Wed, 20 Dec 1995 02:02:55 +0000 (02:02 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 20 Dec 1995 02:02:55 +0000 (02:02 +0000)
allocated.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7240 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/rd_cred.c

index d7909972a7d3b033fdb6fe25e7c98e285d065ace..e9bb577a213f4047cdbe3633ed232cab77c18543 100644 (file)
@@ -1,3 +1,8 @@
+Tue Dec 19 17:15:40 1995  Theodore Y. Ts'o  <tytso@dcl>
+
+       * 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  <epeisach@kangaroo.mit.edu>
 
        * Makefile.in (SRCS/OBJS): Move compat_recv.c to krb5util library.
index 44ffdfd9af8a4640c7d919b9ad801aabf35a6556..a1775f14113b7780205826e80d21b525c41941b8 100644 (file)
@@ -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;
     }