From: Ezra Peisach Date: Mon, 10 Jun 1996 03:16:22 +0000 (+0000) Subject: * main.c (finish_realm): Do not invoke krb5_finish_key if X-Git-Tag: krb5-1.0-beta7~407 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1f7c140f573f926e4a5a4e9b29c68028b9282e4c;p=krb5.git * main.c (finish_realm): Do not invoke krb5_finish_key if encryption block is not set. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8283 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index 417cc0bae..a2a910058 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,8 @@ +Sun Jun 9 23:03:06 1996 Ezra Peisach + + * 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 Thu May 2 22:52:56 1996 Mark Eichin diff --git a/src/kdc/main.c b/src/kdc/main.c index 443acecb5..bd55ef4cb 100644 --- a/src/kdc/main.c +++ b/src/kdc/main.c @@ -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);