diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nsswitch/winbindd_cm.c | 8 |
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; |