From a1e0accc5f4f33ce296bad79a088499cf082d9b5 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 22 Jun 2013 13:06:34 +0200 Subject: smbd: Fix CID 1035538 Uninitialized pointer read 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 Reviewed-by: Jeremy Allison --- source3/smbd/lanman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c index b5598a4382..a21e715679 100644 --- a/source3/smbd/lanman.c +++ b/source3/smbd/lanman.c @@ -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; -- cgit