* krb524d.c: Include <krb5/adm_proto.h> for krb5_log_init()
authorEzra Peisach <epeisach@mit.edu>
Wed, 20 Jun 2001 14:19:30 +0000 (14:19 +0000)
committerEzra Peisach <epeisach@mit.edu>
Wed, 20 Jun 2001 14:19:30 +0000 (14:19 +0000)
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

src/krb524/ChangeLog
src/krb524/krb524d.c

index 2c1d941a7fda16c106fcb7c798c0830e05f3e7f0..1b4762964dd063049cabafb632e98bcd5787de21 100644 (file)
@@ -2,6 +2,8 @@
 
        * krb524d.c: Include <krb5/adm_proto.h> for krb5_log_init()
        prototype.
+       (cleanup_and_exit) Conditionalize krb5_kt_close on keytab being
+       non-null.
 
 2001-06-20  Mitchell Berger  <mitchb@mit.edu>
 
index 2812ebc0e6c6315d7c65beab6e99a836a6ad7852..7be5800ab097e04e037118dc83fcdc9585f68596 100644 (file)
@@ -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);
 }