Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nslcd/host.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nslcd/host.c b/nslcd/host.c
index ac70c0a..4ebc544 100644
--- a/nslcd/host.c
+++ b/nslcd/host.c
@@ -191,7 +191,7 @@ _nss_ldap_parse_host (LDAPMessage * e,
continue;
#else
- unsigned long haddr;
+ in_addr_t haddr;
haddr = inet_addr (addresses[i]);
#endif
@@ -364,7 +364,8 @@ int nslcd_host_all(TFILE *fp)
{
/* write the result */
WRITE_INT32(fp,retv);
- write_hostent(fp,&result);
+ if (write_hostent(fp,&result))
+ return -1;
}
/* write the final result code */
WRITE_INT32(fp,retv);