Use krb5_enomem() more consistently in lib/krb5.
This commit is contained in:
@@ -81,10 +81,8 @@ acl_parse_format(krb5_context context,
|
||||
for(p = format; *p != '\0'; p++) {
|
||||
tmp = malloc(sizeof(*tmp));
|
||||
if(tmp == NULL) {
|
||||
krb5_set_error_message(context, ENOMEM,
|
||||
N_("malloc: out of memory", ""));
|
||||
acl_free_list(acl, 0);
|
||||
return ENOMEM;
|
||||
return krb5_enomem(context);
|
||||
}
|
||||
if(*p == 's') {
|
||||
tmp->type = acl_string;
|
||||
|
Reference in New Issue
Block a user