Fix winbindd coredump. Remember to set a ** pointer to null before
authorJeremy Allison <jra@samba.org>
Wed, 14 May 2003 20:48:48 +0000 (20:48 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 14 May 2003 20:48:48 +0000 (20:48 +0000)
searching and not finding otherwise we return a valid looking pointer
that was whatever crap was on the stack.
Jeremy.
(This used to be commit 5d3ac0e39b2b3c60de7c1fe562e4da1f508a2884)

source3/nsswitch/winbindd_cm.c

index 45cded75fa43940a2689964d0ac38c44ab2af9e7..90df5019d44cdffa7dd781266f374b30531f55b3 100644 (file)
@@ -448,6 +448,8 @@ static void find_cm_connection(const char *domain, const char *pipe_name,
 {
        struct winbindd_cm_conn *conn, conn_temp;
 
+       *conn_out = NULL;
+
        for (conn = cm_conns; conn; conn = conn->next) {
                if (strequal(conn->domain, domain) && 
                    strequal(conn->pipe_name, pipe_name)) {