lib/krb5: make_local_fast_ap_fxarmor requires a ccache

If make_local_fast_ap_fxarmor() is called without a ccache
it will segmentation fault.  Set a krb5 error message in the
context and fail with EINVAL.

Change-Id: I8a72a026dbae931e41498f55cd634ad2fee26772
This commit is contained in:
Jeffrey Altman
2022-01-20 10:22:51 -05:00
parent 966e98d50b
commit d55abd8f50

View File

@@ -138,6 +138,12 @@ make_local_fast_ap_fxarmor(krb5_context context,
krb5_data empty;
krb5_const_realm tgs_realm;
if (armor_ccache == NULL) {
krb5_set_error_message(context, EINVAL,
"Armor credential cache required");
return EINVAL;
}
krb5_data_zero(&empty);
memset(&cred, 0, sizeof(cred));