IPA KDB MS-PAC: return ENOMEM if allocation fails

This commit is contained in:
Jakub Hrozek 2013-07-23 15:07:39 +02:00 committed by Alexander Bokovoy
parent 7b5cc3ed83
commit 85b8c747bb

View File

@ -1842,6 +1842,7 @@ krb5_error_code ipadb_sign_authdata(krb5_context context,
krb5_princ_component(context, ks_client_princ, 0)->length) == 0)) {
ipactx = ipadb_get_context(context);
if (!ipactx) {
kerr = ENOMEM;
goto done;
}
if (ulc_casecmp(krb5_princ_component(context, ks_client_princ, 1)->data,