From: Richard Basch Date: Fri, 15 Mar 1996 19:31:37 +0000 (+0000) Subject: Close the keytab if we opened it, not if the caller opened it X-Git-Tag: krb5-1.0-beta6~359 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=93c5f442d8eed15d43b364683be5bca54b1e60df;p=krb5.git 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 --- 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; }