s3-net: Fix Coverity #898 (UNINIT).
authorGünther Deschner <gd@samba.org>
Fri, 20 Mar 2009 10:04:59 +0000 (11:04 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 15 Apr 2009 07:07:29 +0000 (09:07 +0200)
Guenther
(cherry picked from commit d2fb6d348248cdca7e55360c77aa31b91250f885)
(cherry picked from commit 874caf9a1fb45f36ec8c506d29264735d1647dae)

source3/utils/net_rpc.c

index d83fb44abad7cef5fcb86b3683bed498e3313fc4..8a92c85b9e8ba1867d1b6d9a32741d0feacf1b3a 100644 (file)
@@ -1657,7 +1657,7 @@ static NTSTATUS get_sid_from_name(struct cli_state *cli,
 {
        DOM_SID *sids = NULL;
        enum lsa_SidType *types = NULL;
-       struct rpc_pipe_client *pipe_hnd;
+       struct rpc_pipe_client *pipe_hnd = NULL;
        struct policy_handle lsa_pol;
        NTSTATUS result = NT_STATUS_UNSUCCESSFUL;