Fix a valgrind error
authorVolker Lendecke <vl@samba.org>
Tue, 17 Mar 2009 10:22:41 +0000 (11:22 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 17 Mar 2009 10:34:29 +0000 (11:34 +0100)
Found in "make test" -- if we can't connect at all, "cli" is uninitialized

source/winbindd/winbindd_cm.c

index ddd98c355eb2ce4af4ad41e1ccd1ab447e8035cd..bc3db08f2aa91404a1a485b6a6bf5a6ea9d38289 100644 (file)
@@ -1763,7 +1763,7 @@ static void set_dc_type_and_flags_connect( struct winbindd_domain *domain )
        NTSTATUS                result;
        WERROR werr;
        TALLOC_CTX              *mem_ctx = NULL;
-       struct rpc_pipe_client  *cli;
+       struct rpc_pipe_client  *cli = NULL;
        POLICY_HND pol;
        union dssetup_DsRoleInfo info;
        union lsa_PolicyInformation *lsa_info = NULL;