Allow krb5_verify_init_creds() to take NULL opt arg.
Without dereferencing it. krb5_verify_init_creds_opt * to be precise.
This commit is contained in:
@@ -55,16 +55,19 @@ static krb5_boolean
|
|||||||
fail_verify_is_ok (krb5_context context,
|
fail_verify_is_ok (krb5_context context,
|
||||||
krb5_verify_init_creds_opt *options)
|
krb5_verify_init_creds_opt *options)
|
||||||
{
|
{
|
||||||
if ((options->flags & KRB5_VERIFY_INIT_CREDS_OPT_AP_REQ_NOFAIL
|
|
||||||
&& options->ap_req_nofail != 0)
|
if (options && (options->flags & KRB5_VERIFY_INIT_CREDS_OPT_AP_REQ_NOFAIL)
|
||||||
|| krb5_config_get_bool (context,
|
&& options->ap_req_nofail != 0)
|
||||||
NULL,
|
|
||||||
"libdefaults",
|
|
||||||
"verify_ap_req_nofail",
|
|
||||||
NULL))
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
else
|
|
||||||
return TRUE;
|
if (krb5_config_get_bool(context,
|
||||||
|
NULL,
|
||||||
|
"libdefaults",
|
||||||
|
"verify_ap_req_nofail",
|
||||||
|
NULL))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
|
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
|
||||||
|
Reference in New Issue
Block a user