From 4e6400f1ed9ef4cb4950a3b873ebdd9edd71efbd Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 18 Mar 2002 10:53:02 +0000 Subject: 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) --- source3/nsswitch/winbindd_cm.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- cgit