From: Ezra Peisach Date: Wed, 20 Jun 2001 14:19:30 +0000 (+0000) Subject: * krb524d.c: Include for krb5_log_init() X-Git-Tag: krb5-1.3-alpha1~1363 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dabebb0368ed039d0b08953adf6eaccf940ed563;p=krb5.git * krb524d.c: Include for krb5_log_init() prototype. (cleanup_and_exit) Conditionalize krb5_kt_close on keytab being non-null. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13415 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/krb524/ChangeLog b/src/krb524/ChangeLog index 2c1d941a7..1b4762964 100644 --- a/src/krb524/ChangeLog +++ b/src/krb524/ChangeLog @@ -2,6 +2,8 @@ * krb524d.c: Include for krb5_log_init() prototype. + (cleanup_and_exit) Conditionalize krb5_kt_close on keytab being + non-null. 2001-06-20 Mitchell Berger diff --git a/src/krb524/krb524d.c b/src/krb524/krb524d.c index 2812ebc0e..7be5800ab 100644 --- a/src/krb524/krb524d.c +++ b/src/krb524/krb524d.c @@ -224,7 +224,7 @@ void cleanup_and_exit(ret, context) if (use_master && handle) { (void) kadm5_destroy(handle); } - if (use_keytab) krb5_kt_close(context, kt); + if (use_keytab &&kt) krb5_kt_close(context, kt); krb5_free_context(context); exit(ret); }