lib/kadm5: use krb5_enomem() where possible

Change-Id: I487fbc640a8f793f0aa02ef4c94099e09241d616
This commit is contained in:
Jeffrey Altman
2018-12-24 14:53:06 -05:00
committed by Nico Williams
parent 50ebc1491a
commit db859520b4
23 changed files with 122 additions and 131 deletions

View File

@@ -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);