summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-03-18 10:53:02 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-03-18 10:53:02 +0000
commit4e6400f1ed9ef4cb4950a3b873ebdd9edd71efbd (patch)
treef117b7cae69ff0fa585d650c445dbb74df6052c2 /source3/nsswitch
parentead8c07f29dbba1f9c485dbfff6451971a710e87 (diff)
downloadsamba-4e6400f1ed9ef4cb4950a3b873ebdd9edd71efbd.tar.gz
samba-4e6400f1ed9ef4cb4950a3b873ebdd9edd71efbd.tar.bz2
samba-4e6400f1ed9ef4cb4950a3b873ebdd9edd71efbd.zip
Allow us to see the difference between these two errors. (We need to chase
down some bugs with it...). Andrew Bartlett (This used to be commit ef68b28fa0e89345f817ca8fd8f04138a009c21e)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_cm.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_cm.c b/source3/nsswitch/winbindd_cm.c
index fa31af9b9e..dfae06ff00 100644
--- a/source3/nsswitch/winbindd_cm.c
+++ b/source3/nsswitch/winbindd_cm.c
@@ -378,7 +378,13 @@ static BOOL connection_ok(struct winbindd_cm_conn *conn)
return False;
}
- if (!conn->cli || !conn->cli->initialised) {
+ if (!conn->cli) {
+ DEBUG(3, ("Connection to %s for domain %s (pipe %s) has NULL conn->cli!\n",
+ conn->controller, conn->domain, conn->pipe_name));
+ return False;
+ }
+
+ if (!conn->cli->initialised) {
DEBUG(3, ("Connection to %s for domain %s (pipe %s) was never initialised!\n",
conn->controller, conn->domain, conn->pipe_name));
return False;