* main.c (finish_realm): Do not invoke krb5_finish_key if
authorEzra Peisach <epeisach@mit.edu>
Mon, 10 Jun 1996 03:16:22 +0000 (03:16 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 10 Jun 1996 03:16:22 +0000 (03:16 +0000)
encryption block is not set.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8283 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/ChangeLog
src/kdc/main.c

index 417cc0bae565bf340c52da2c079b6b7dea8f5cba..a2a910058918cfd84d4b7caa50f5b758d4905529 100644 (file)
@@ -1,3 +1,8 @@
+Sun Jun  9 23:03:06 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * main.c (finish_realm): Do not invoke krb5_finish_key if
+               encryption block is not set.
+
 Tue May  7 18:19:59 1996  Ken Raeburn  <raeburn@cygnus.com>
 
        Thu May  2 22:52:56 1996  Mark Eichin  <eichin@cygnus.com>
index 443acecb545d022f56230f99e5e570a60905d790..bd55ef4cbe97edb272d0251b0cbca95c0a82c4a6 100644 (file)
@@ -271,7 +271,8 @@ finish_realm(rdp)
            memset(rdp->realm_tgskey.contents, 0, rdp->realm_tgskey.length);
            free(rdp->realm_tgskey.contents);
        }
-       krb5_finish_key(rdp->realm_context, &rdp->realm_encblock);
+       if (rdp->realm_encblock.crypto_entry)
+               krb5_finish_key(rdp->realm_context, &rdp->realm_encblock);
        krb5_db_fini(rdp->realm_context);
        if (rdp->realm_tgsprinc)
            krb5_free_principal(rdp->realm_context, rdp->realm_tgsprinc);