Fix a valgrind error
authorVolker Lendecke <vl@samba.org>
Tue, 17 Mar 2009 10:22:41 +0000 (11:22 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 31 Mar 2009 10:16:51 +0000 (12:16 +0200)
Found in "make test" -- if we can't connect at all, "cli" is uninitialized
(cherry picked from commit 8ffe7b07df753568d960155c27d57de2bd99993f)

source/winbindd/winbindd_cm.c

index 9d562bbff04275ee265da357a4555e8a9db52a46..3f4333d6bf42db98ccf27782090b09802243ec2c 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;