svn commit: samba r8311 - in
branches/SAMBA_4_0/source/heimdal_build: .
tridge at samba.org
tridge at samba.org
Mon Jul 11 04:01:22 GMT 2005
Author: tridge
Date: 2005-07-11 04:01:22 +0000 (Mon, 11 Jul 2005)
New Revision: 8311
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8311
Log:
krb5 uses ENOMEM for out of memory
(thanks to abartlet for pointing this out)
Modified:
branches/SAMBA_4_0/source/heimdal_build/glue.c
Changeset:
Modified: branches/SAMBA_4_0/source/heimdal_build/glue.c
===================================================================
--- branches/SAMBA_4_0/source/heimdal_build/glue.c 2005-07-11 03:52:31 UTC (rev 8310)
+++ branches/SAMBA_4_0/source/heimdal_build/glue.c 2005-07-11 04:01:22 UTC (rev 8311)
@@ -33,7 +33,7 @@
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 @@
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);
}
More information about the samba-cvs
mailing list