]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
* cc_memory.c (krb5_mcc_store): When allocating krb5_mcc_link
authorEzra Peisach <epeisach@mit.edu>
Sun, 18 Jul 2004 04:10:22 +0000 (04:10 +0000)
committerEzra Peisach <epeisach@mit.edu>
Sun, 18 Jul 2004 04:10:22 +0000 (04:10 +0000)
memory - allocate sizeof() - not sizeof(sizeof()).

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

src/lib/krb5/ccache/ChangeLog
src/lib/krb5/ccache/cc_memory.c

index 06666bdb3c8c95506cb338ba65e8dbb98e25007a..c2a7e451a32f591f3a3d0d9d0710a1043e3178ba 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-18  Ezra Peisach  <epeisach@mit.edu>
+
+       * cc_memory.c (krb5_mcc_store): When allocating krb5_mcc_link
+       memory - allocate sizeof() - not sizeof(sizeof()).
+
 2004-07-16  Ken Raeburn  <raeburn@mit.edu>
 
        * cc_file.c: Don't check for macsock.h.
index 07e08ed8b8fe0594da0fbb50138b90628ef691dd..3dc9a7c2b78a2ad4e741b72eb88aa360639edde4 100644 (file)
@@ -572,7 +572,7 @@ krb5_mcc_store(krb5_context ctx, krb5_ccache id, krb5_creds *creds)
     krb5_mcc_link *new_node;
     krb5_mcc_data *mptr = (krb5_mcc_data *)id->data;
 
-    new_node = malloc(sizeof(sizeof(krb5_mcc_link)));
+    new_node = malloc(sizeof(krb5_mcc_link));
     if (new_node == NULL)
        return errno;
     err = krb5_copy_creds(ctx, creds, &new_node->creds);