From 9958878e46b2c05e34e9ec7a96812b5d99c24f25 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Wed, 28 Aug 1996 21:49:24 +0000 Subject: [PATCH] Fix stupid bug; don't free buf before it's allocated! git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8998 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/krb5/ChangeLog | 5 +++++ src/lib/gssapi/krb5/util_cksum.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index 4b67f7058..b74b53091 100644 --- a/src/lib/gssapi/krb5/ChangeLog +++ b/src/lib/gssapi/krb5/ChangeLog @@ -1,3 +1,8 @@ +Wed Aug 28 17:45:55 1996 Theodore Ts'o + + * util_cksum.c (kg_checksum_channel_bindings): Fix stupid bug; + don't free buf before it's allocated! + Thu Aug 15 20:52:37 1996 Sam Hartman * init_sec_context.c (make_ap_req): Require des-cbc-crc for now; diff --git a/src/lib/gssapi/krb5/util_cksum.c b/src/lib/gssapi/krb5/util_cksum.c index ee3e1aafa..68561f10b 100644 --- a/src/lib/gssapi/krb5/util_cksum.c +++ b/src/lib/gssapi/krb5/util_cksum.c @@ -42,7 +42,6 @@ kg_checksum_channel_bindings(context, cb, cksum, bigend) cksum->checksum_type = CKSUMTYPE_RSA_MD5; cksum->length = krb5_checksum_size(context, CKSUMTYPE_RSA_MD5); if ((cksum->contents = (krb5_octet *) xmalloc(cksum->length)) == NULL) { - free(buf); return(ENOMEM); } -- 2.26.2