check if there is any key at all
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18928 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -149,6 +149,11 @@ static OM_uint32 inquire_sec_context_get_subkey
|
|||||||
HEIMDAL_MUTEX_unlock(&context_handle->ctx_id_mutex);
|
HEIMDAL_MUTEX_unlock(&context_handle->ctx_id_mutex);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto out;
|
goto out;
|
||||||
|
if (key == NULL) {
|
||||||
|
_gsskrb5_set_status("have no subkey of type %d", keytype);
|
||||||
|
ret = EINVAL;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
ret = krb5_store_keyblock(sp, *key);
|
ret = krb5_store_keyblock(sp, *key);
|
||||||
krb5_free_keyblock (_gsskrb5_context, key);
|
krb5_free_keyblock (_gsskrb5_context, key);
|
||||||
|
Reference in New Issue
Block a user