smbd: Fix CID 1035538 Uninitialized pointer read
authorVolker Lendecke <vl@samba.org>
Sat, 22 Jun 2013 11:06:34 +0000 (13:06 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 22 Jul 2013 22:07:37 +0000 (15:07 -0700)
rpc_pipe_open_interface just returns okay if the pipe in question is
already open. For this, it needs to read the value.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/lanman.c

index b5598a4382ded1d6348fc9fd579dd25e4f857a9f..a21e715679774249b5da1982b8cfddc017f934aa 100644 (file)
@@ -2715,7 +2715,7 @@ static bool api_RNetUserEnum(struct smbd_server_connection *sconn,
        int i, resume_context, cli_buf_size;
        uint32_t resume_handle;
 
-       struct rpc_pipe_client *samr_pipe;
+       struct rpc_pipe_client *samr_pipe = NULL;
        struct policy_handle samr_handle, domain_handle;
        NTSTATUS status, result;