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,15 +55,18 @@ static krb5_boolean
|
||||
fail_verify_is_ok (krb5_context context,
|
||||
krb5_verify_init_creds_opt *options)
|
||||
{
|
||||
if ((options->flags & KRB5_VERIFY_INIT_CREDS_OPT_AP_REQ_NOFAIL
|
||||
|
||||
if (options && (options->flags & KRB5_VERIFY_INIT_CREDS_OPT_AP_REQ_NOFAIL)
|
||||
&& options->ap_req_nofail != 0)
|
||||
|| krb5_config_get_bool (context,
|
||||
return FALSE;
|
||||
|
||||
if (krb5_config_get_bool(context,
|
||||
NULL,
|
||||
"libdefaults",
|
||||
"verify_ap_req_nofail",
|
||||
NULL))
|
||||
return FALSE;
|
||||
else
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user