diff options
author | Theodore Tso <tytso@mit.edu> | 1995-03-31 05:46:29 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1995-03-31 05:46:29 +0000 |
commit | 89c1a7383ef104b4540fba9ef355128d3cb47ab4 (patch) | |
tree | c72c7e515bfb2d7cd8bf94fd10412d22c0d9f130 /src/lib/krb5/krb/rd_req.c | |
parent | c365b64a31142a6ae4628741dd5b695ac66bb2a3 (diff) | |
download | krb5-89c1a7383ef104b4540fba9ef355128d3cb47ab4.tar.gz krb5-89c1a7383ef104b4540fba9ef355128d3cb47ab4.tar.xz krb5-89c1a7383ef104b4540fba9ef355128d3cb47ab4.zip |
Fix typo which caused new_keytab to not get freed, causing a memory
leak.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5317 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb/rd_req.c')
-rw-r--r-- | src/lib/krb5/krb/rd_req.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/krb5/krb/rd_req.c b/src/lib/krb5/krb/rd_req.c index 7c569fb94c..cd498a1a46 100644 --- a/src/lib/krb5/krb/rd_req.c +++ b/src/lib/krb5/krb/rd_req.c @@ -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: |