diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-03-18 10:53:02 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-03-18 10:53:02 +0000 |
commit | ef68b28fa0e89345f817ca8fd8f04138a009c21e (patch) | |
tree | 5a91bdb9539340002652e00f7279b37cec524c5a /source/nsswitch | |
parent | a772386d34178ffb8926bfd071ad028de40cefaf (diff) | |
download | samba-ef68b28fa0e89345f817ca8fd8f04138a009c21e.tar.gz samba-ef68b28fa0e89345f817ca8fd8f04138a009c21e.tar.xz samba-ef68b28fa0e89345f817ca8fd8f04138a009c21e.zip |
Allow us to see the difference between these two errors. (We need to chase
down some bugs with it...).
Andrew Bartlett
Diffstat (limited to 'source/nsswitch')
-rw-r--r-- | source/nsswitch/winbindd_cm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/nsswitch/winbindd_cm.c b/source/nsswitch/winbindd_cm.c index fa31af9b9e6..dfae06ff004 100644 --- a/source/nsswitch/winbindd_cm.c +++ b/source/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; |