encryption block is not set.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8283
dc483132-0cff-0310-8789-
dd5450dbe970
+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>
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);