From 93c5f442d8eed15d43b364683be5bca54b1e60df Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Fri, 15 Mar 1996 19:31:37 +0000 Subject: [PATCH] Close the keytab if we opened it, not if the caller opened it git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7643 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 5 +++++ src/lib/krb5/krb/in_tkt_ktb.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 15313559e..4d6c3e179 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +Fri Mar 15 14:29:00 1996 Richard Basch + + * in_tkt_ktb.c: Close the keytab if we opened it, not if the + caller opened it. + Wed Mar 13 17:31:30 1996 Ken Raeburn * configure.in: Use AC_HEADER_STDARG. diff --git a/src/lib/krb5/krb/in_tkt_ktb.c b/src/lib/krb5/krb/in_tkt_ktb.c index c56ed3c3d..deb7a4a1a 100644 --- a/src/lib/krb5/krb/in_tkt_ktb.c +++ b/src/lib/krb5/krb/in_tkt_ktb.c @@ -90,7 +90,7 @@ keytab_keyproc(context, type, salt, keyseed, key) *key = realkey; cleanup: - if (arg->keytab) + if (! arg->keytab) krb5_kt_close(context, kt_id); return retval; } -- 2.26.2