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:
@@ -138,6 +138,12 @@ make_local_fast_ap_fxarmor(krb5_context context,
|
|||||||
krb5_data empty;
|
krb5_data empty;
|
||||||
krb5_const_realm tgs_realm;
|
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);
|
krb5_data_zero(&empty);
|
||||||
memset(&cred, 0, sizeof(cred));
|
memset(&cred, 0, sizeof(cred));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user