lib/kadm5: use krb5_enomem() where possible
Change-Id: I487fbc640a8f793f0aa02ef4c94099e09241d616
This commit is contained in:

committed by
Nico Williams

parent
50ebc1491a
commit
db859520b4
@@ -43,7 +43,7 @@ _kadm5_set_modifier(kadm5_server_context *context,
|
||||
if(ent->modified_by == NULL){
|
||||
ent->modified_by = malloc(sizeof(*ent->modified_by));
|
||||
if(ent->modified_by == NULL)
|
||||
return ENOMEM;
|
||||
return krb5_enomem(context->context);
|
||||
} else
|
||||
free_Event(ent->modified_by);
|
||||
ent->modified_by->time = time(NULL);
|
||||
|
Reference in New Issue
Block a user