]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
fix bug which would free nonexisten memory in the case of a malloc
authorMarc Horowitz <marc@mit.edu>
Tue, 6 Oct 1998 06:45:01 +0000 (06:45 +0000)
committerMarc Horowitz <marc@mit.edu>
Tue, 6 Oct 1998 06:45:01 +0000 (06:45 +0000)
failure.

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/marc-3des@10965 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/util_cksum.c

index b3e6b6cbc540d04eb8c086ce4a25fa8079914fe7..10e6b657fd12897e846f197fe883ab21b1cc3f98 100644 (file)
@@ -85,7 +85,6 @@ kg_checksum_channel_bindings(context, cb, cksum, bigend)
 
    if (code = krb5_c_make_checksum(context, CKSUMTYPE_RSA_MD5, 0, 0,
                                   &plaind, cksum)) {
-      xfree(cksum->contents);
       xfree(buf);
       return(code);
    }