summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-01-06 17:50:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:47 -0500
commitb7f908f7bafe64b5dd9b1e5a7dacf28c4b62451e (patch)
treedc84bcb3fef01cad79dd7985b9ce49b0861d3817
parent28b78137767bd3822d0f122ac10057a240ff379e (diff)
downloadsamba-b7f908f7bafe64b5dd9b1e5a7dacf28c4b62451e.tar.gz
samba-b7f908f7bafe64b5dd9b1e5a7dacf28c4b62451e.tar.bz2
samba-b7f908f7bafe64b5dd9b1e5a7dacf28c4b62451e.zip
r4575: adding extra debug to cm_prepare_connection()
(This used to be commit 13a2aa50ea203cee9c2323bb0428f8c50a3c0f77)
-rw-r--r--source3/nsswitch/winbindd_cm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_cm.c b/source3/nsswitch/winbindd_cm.c
index 1843ec188b..8a11dfbc30 100644
--- a/source3/nsswitch/winbindd_cm.c
+++ b/source3/nsswitch/winbindd_cm.c
@@ -266,7 +266,10 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain,
if ((getpeername((*cli)->fd, &peeraddr, &peeraddr_len) != 0) ||
(peeraddr_len != sizeof(struct sockaddr_in)) ||
(peeraddr_in->sin_family != PF_INET))
+ {
+ DEBUG(0,("cm_prepare_connection: %s\n", strerror(errno)));
goto done;
+ }
if (ntohs(peeraddr_in->sin_port) == 139) {
struct nmb_name calling;