Misc fixes (coverity)
This commit is contained in:
@@ -611,8 +611,8 @@ gsskrb5_acceptor_start(OM_uint32 * minor_status,
|
||||
rkey);
|
||||
if (kret == 0)
|
||||
use_subkey = 1;
|
||||
krb5_free_keyblock(context, rkey);
|
||||
}
|
||||
krb5_free_keyblock(context, rkey);
|
||||
}
|
||||
if (use_subkey) {
|
||||
ctx->more_flags |= ACCEPTOR_SUBKEY;
|
||||
|
@@ -149,7 +149,6 @@ static OM_uint32 inquire_sec_context_get_subkey
|
||||
}
|
||||
|
||||
ret = krb5_store_keyblock(sp, *key);
|
||||
krb5_free_keyblock (context, key);
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
@@ -169,6 +168,7 @@ static OM_uint32 inquire_sec_context_get_subkey
|
||||
}
|
||||
|
||||
out:
|
||||
krb5_free_keyblock(context, key);
|
||||
krb5_data_free(&data);
|
||||
if (sp)
|
||||
krb5_storage_free(sp);
|
||||
|
Reference in New Issue
Block a user