Fix for winbindd segfault (finally I think this is the correct one :-)
authorJeremy Allison <jra@samba.org>
Thu, 15 May 2003 18:25:03 +0000 (18:25 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 15 May 2003 18:25:03 +0000 (18:25 +0000)
from "Roylance, Stephen D." <SROYLANCE@PARTNERS.ORG>.
Jeremy.
(This used to be commit 459fb6519bc9bc9bbb151291ff795ecc0c014d63)

source3/nsswitch/winbindd_cm.c

index 05ea317d18406747e368effb4654770fca82ac81..b04d77ee2e62dee4abd59dbc6c776e70c51baec5 100644 (file)
@@ -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);
 
 {
        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);
                return NT_STATUS_OK;
 
        return new_cm_connection(domain, pipe_name, conn_out);