Fix typo which caused new_keytab to not get freed, causing a memory
authorTheodore Tso <tytso@mit.edu>
Fri, 31 Mar 1995 05:46:29 +0000 (05:46 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 31 Mar 1995 05:46:29 +0000 (05:46 +0000)
leak.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5317 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/rd_req.c

index 5322c1463bf3f0124f8074195447412968700d0a..1e927a40705f7c6a0a99b26ffca1812ebd97306d 100644 (file)
@@ -1,3 +1,8 @@
+Fri Mar 31 00:44:26 1995  Theodore Y. Ts'o  (tytso@dcl)
+
+       * rd_req.c (krb5_rd_req): Fix typo which caused new_keytab to not
+               get freed, causing a memory leak.
+
 Thu Mar 30 15:49:27 1995 Keith Vetter (keithv@fusion.com)
 
        * rd_req.c: removed unused local variable.
index 7c569fb94c11359a7ab4c1d4f7ff49ef8ab1bfeb..cd498a1a4621e1151e8a4d210b2a55bd43c4a444 100644 (file)
@@ -94,7 +94,7 @@ krb5_rd_req(context, auth_context, inbuf, server, keytab,
     retval = krb5_rd_req_decoded(context, auth_context, request, server, 
                                 keytab, ap_req_options, ticket);
 
-    if (new_keytab == NULL)
+    if (new_keytab != NULL)
         (void) krb5_kt_close(context, new_keytab);
 
 cleanup_auth_context: