Oops in previous memory freeing fixes; was a bit too agressive freeing things
authorTheodore Tso <tytso@mit.edu>
Thu, 19 Jan 1995 02:46:40 +0000 (02:46 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 19 Jan 1995 02:46:40 +0000 (02:46 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4823 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/mk_req_ext.c

index 585ebde20a042abe1ce33a8113e8304ec17a8057..b4d60177a6071388a5a92e1794635e475175101d 100644 (file)
@@ -205,7 +205,7 @@ cleanup:
                      request.authenticator.ciphertext.length);
        free(request.authenticator.ciphertext.data);
     }
-    if (newkey && *newkey)
+    if (retval && newkey && *newkey)
        krb5_free_keyblock(context, *newkey);
     if (scratch) {
        memset(scratch->data, 0, scratch->length);