Use krb5_enomem() more consistently in lib/krb5.
This commit is contained in:
@@ -81,11 +81,8 @@ krb5_copy_ticket(krb5_context context,
|
||||
|
||||
*to = NULL;
|
||||
tmp = malloc(sizeof(*tmp));
|
||||
if(tmp == NULL) {
|
||||
krb5_set_error_message(context, ENOMEM,
|
||||
N_("malloc: out of memory", ""));
|
||||
return ENOMEM;
|
||||
}
|
||||
if (tmp == NULL)
|
||||
return krb5_enomem(context);
|
||||
if((ret = copy_EncTicketPart(&from->ticket, &tmp->ticket))){
|
||||
free(tmp);
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user