Allow us to see the difference between these two errors. (We need to chase
authorAndrew Bartlett <abartlet@samba.org>
Mon, 18 Mar 2002 10:53:02 +0000 (10:53 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 18 Mar 2002 10:53:02 +0000 (10:53 +0000)
down some bugs with it...).

Andrew Bartlett
(This used to be commit ef68b28fa0e89345f817ca8fd8f04138a009c21e)

source3/nsswitch/winbindd_cm.c

index fa31af9b9e6547633dbcd54b8735fbe2e97c1f61..dfae06ff004cf14b4042c3abcb69a4a615f3c50d 100644 (file)
@@ -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;