gsskrb5: Fix NULL deref in init_sec_context
This commit is contained in:
@@ -742,6 +742,9 @@ repl_mutual
|
|||||||
output_token->length = 0;
|
output_token->length = 0;
|
||||||
output_token->value = NULL;
|
output_token->value = NULL;
|
||||||
|
|
||||||
|
if (input_token == GSS_C_NO_BUFFER)
|
||||||
|
return GSS_S_FAILURE;
|
||||||
|
|
||||||
if (actual_mech_type)
|
if (actual_mech_type)
|
||||||
*actual_mech_type = GSS_KRB5_MECHANISM;
|
*actual_mech_type = GSS_KRB5_MECHANISM;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user