* make_checksum.c (krb5_c_make_checksum): Clear checksum contents pointer after
authorKen Raeburn <raeburn@mit.edu>
Tue, 30 Jan 2001 04:23:56 +0000 (04:23 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 30 Jan 2001 04:23:56 +0000 (04:23 +0000)
freeing it in error case.

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

src/lib/crypto/ChangeLog
src/lib/crypto/make_checksum.c

index 76aec91ed550904fb70135fa08cb326c8dfed731..3d8c438ad63996c3e7ebb0a9ed41ecf0958515c6 100644 (file)
@@ -1,3 +1,8 @@
+2001-01-29  Ken Raeburn  <raeburn@mit.edu>
+
+       * make_checksum.c (krb5_c_make_checksum): Clear checksum contents
+       pointer after freeing it in error case.
+
 2000-10-17  Ezra Peisach  <epeisach@mit.edu>
 
        * nfold.c (krb5_nfold): inbots and outbits are now unsigned int. 
index 300f37535289c2785bcbad30ce38daba53f72644..64f63894c19aa8d7fb6f956b4fe58a1e790bb658 100644 (file)
@@ -114,6 +114,7 @@ cleanup:
     if (ret) {
        memset(cksum->contents, 0, cksum->length);
        free(cksum->contents);
+       cksum->contents = NULL;
     }
 
     return(ret);