1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r8311: krb5 uses ENOMEM for out of memory

(thanks to abartlet for pointing this out)
(This used to be commit 4b16754a0e)
This commit is contained in:
Andrew Tridgell 2005-07-11 04:01:22 +00:00 committed by Gerald (Jerry) Carter
parent 8c018ff786
commit 2fa99e56bc

View File

@ -33,7 +33,7 @@ krb5_error_code krb5_get_all_client_addrs(krb5_context context, krb5_addresses *
res->len = iface_count();
res->val = malloc_array_p(HostAddress, res->len);
if (res->val == NULL) {
return KRB5_CC_NOMEM;
return ENOMEM;
}
for (i=0;i<res->len;i++) {
const char *ip = iface_n_ip(i);
@ -41,7 +41,7 @@ krb5_error_code krb5_get_all_client_addrs(krb5_context context, krb5_addresses *
res->val[i].address.length = 4;
res->val[i].address.data = malloc(4);
if (res->val[i].address.data == NULL) {
return KRB5_CC_NOMEM;
return ENOMEM;
}
((struct in_addr *)res->val[i].address.data)->s_addr = sys_inet_addr(ip);
}