summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/nsswitch/winbindd_cm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_cm.c b/source3/nsswitch/winbindd_cm.c
index 05ea317d18..b04d77ee2e 100644
--- a/source3/nsswitch/winbindd_cm.c
+++ b/source3/nsswitch/winbindd_cm.c
@@ -502,7 +502,7 @@ static NTSTATUS get_connection_from_cache(const char *domain, const char *pipe_n
{
find_cm_connection(domain, pipe_name, conn_out);
- if (conn_out != NULL)
+ if (*conn_out != NULL)
return NT_STATUS_OK;
return new_cm_connection(domain, pipe_name, conn_out);