From: Ken Raeburn Date: Tue, 30 Jan 2001 04:23:56 +0000 (+0000) Subject: * make_checksum.c (krb5_c_make_checksum): Clear checksum contents pointer after X-Git-Tag: krb5-1.3-alpha1~1675 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f2bd3efab257e248d417c127a921005bf7688c81;p=krb5.git * make_checksum.c (krb5_c_make_checksum): Clear checksum contents pointer after freeing it in error case. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12968 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/ChangeLog b/src/lib/crypto/ChangeLog index 76aec91ed..3d8c438ad 100644 --- a/src/lib/crypto/ChangeLog +++ b/src/lib/crypto/ChangeLog @@ -1,3 +1,8 @@ +2001-01-29 Ken Raeburn + + * make_checksum.c (krb5_c_make_checksum): Clear checksum contents + pointer after freeing it in error case. + 2000-10-17 Ezra Peisach * nfold.c (krb5_nfold): inbots and outbits are now unsigned int. diff --git a/src/lib/crypto/make_checksum.c b/src/lib/crypto/make_checksum.c index 300f37535..64f63894c 100644 --- a/src/lib/crypto/make_checksum.c +++ b/src/lib/crypto/make_checksum.c @@ -114,6 +114,7 @@ cleanup: if (ret) { memset(cksum->contents, 0, cksum->length); free(cksum->contents); + cksum->contents = NULL; } return(ret);