Fix stupid bug; don't free buf before it's allocated!
authorTheodore Tso <tytso@mit.edu>
Wed, 28 Aug 1996 21:49:24 +0000 (21:49 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 28 Aug 1996 21:49:24 +0000 (21:49 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8998 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/ChangeLog
src/lib/gssapi/krb5/util_cksum.c

index 4b67f7058aa41385ade3ce5a8a9a8a9407d82fd3..b74b53091944462ba011e83d6d1a4d01579ff9b1 100644 (file)
@@ -1,3 +1,8 @@
+Wed Aug 28 17:45:55 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+       * 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  <hartmans@tertius.mit.edu>
 
        * init_sec_context.c (make_ap_req): Require des-cbc-crc for now;
index ee3e1aafa093eb8261bce597086ee779417f0d31..68561f10b31cffc7800121c3f7f344e2575e6a92 100644 (file)
@@ -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);
    }