Fix a bug where kstash crashes if there is no krb5.conf
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10799 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2001-12-05 Jacques Vidrine <n@nectar.cc>
|
||||
|
||||
* lib/hdb/mkey.c: fix a bug in which kstash would crash if
|
||||
there were no /etc/krb5.conf
|
||||
|
||||
2001-10-29 Jacques Vidrine <n@nectar.com>
|
||||
|
||||
* admin/get.c: fix a bug in which a reference to a data
|
||||
|
@@ -50,7 +50,8 @@ hdb_free_master_key(krb5_context context, hdb_master_key mkey)
|
||||
struct hdb_master_key_data *ptr;
|
||||
while(mkey) {
|
||||
krb5_kt_free_entry(context, &mkey->keytab);
|
||||
krb5_crypto_destroy(context, mkey->crypto);
|
||||
if (mkey->crypto)
|
||||
krb5_crypto_destroy(context, mkey->crypto);
|
||||
ptr = mkey;
|
||||
mkey = mkey->next;
|
||||
free(ptr);
|
||||
|
Reference in New Issue
Block a user