summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-11 04:01:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:20:05 -0500
commit2fa99e56bc6b1fd52ecc122740ece8771e4069c8 (patch)
tree998f139ee7762f7093195311ac9dd3331eb7e18b /source4
parent8c018ff786952424a2f1c612046eb91d2e42f648 (diff)
downloadsamba-2fa99e56bc6b1fd52ecc122740ece8771e4069c8.tar.gz
samba-2fa99e56bc6b1fd52ecc122740ece8771e4069c8.tar.bz2
samba-2fa99e56bc6b1fd52ecc122740ece8771e4069c8.zip
r8311: krb5 uses ENOMEM for out of memory
(thanks to abartlet for pointing this out) (This used to be commit 4b16754a0e8be312d671d9ae892a8c14462f8d95)
Diffstat (limited to 'source4')
-rw-r--r--source4/heimdal_build/glue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/heimdal_build/glue.c b/source4/heimdal_build/glue.c
index dbfa82ddcf..106a733a94 100644
--- a/source4/heimdal_build/glue.c
+++ b/source4/heimdal_build/glue.c
@@ -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);
}