summaryrefslogtreecommitdiff
path: root/source3/lib/util_sock.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-11-13 02:07:07 +0000
committerJeremy Allison <jra@samba.org>1998-11-13 02:07:07 +0000
commit2164685b9f959814af2067aa0dcac2d1b2ac0bc5 (patch)
treef8ebfac1cd4515f5de95d97e3b553f483669fd9e /source3/lib/util_sock.c
parentcb265dbb8b73a177d9e7fd52e53f1eba487b94d4 (diff)
downloadsamba-2164685b9f959814af2067aa0dcac2d1b2ac0bc5.tar.gz
samba-2164685b9f959814af2067aa0dcac2d1b2ac0bc5.tar.bz2
samba-2164685b9f959814af2067aa0dcac2d1b2ac0bc5.zip
include/smb.h: Re-added zero pointer protection to ZERO_STRUCTP.
lib/util_sock.c: Added strerror() calls to getpeername failures (which seem to be giving IRIX trouble at the moment). rpc_parse/parse_sec.c: Changed use of ZERO_STRUCTPN to ZERO_STRUCTP which again does zero pointer protection. smbd/quotas.c: Fixed typo. Jeremy. (This used to be commit b62f008974c96e0302d6c146cf49bc2045bef005)
Diffstat (limited to 'source3/lib/util_sock.c')
-rw-r--r--source3/lib/util_sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index 47c94f21fc..3a52732a2a 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -795,7 +795,7 @@ char *client_name(int fd)
}
if (getpeername(fd, &sa, &length) < 0) {
- DEBUG(0,("getpeername failed\n"));
+ DEBUG(0,("getpeername failed. Error was %s\n", strerror(errno) ));
return name_buf;
}
@@ -840,7 +840,7 @@ char *client_addr(int fd)
}
if (getpeername(fd, &sa, &length) < 0) {
- DEBUG(0,("getpeername failed\n"));
+ DEBUG(0,("getpeername failed. Error was %s\n", strerror(errno) ));
return addr_buf;
}