1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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 <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2013-06-22 13:06:34 +02:00 committed by Jeremy Allison
parent a6a0d238b3
commit a1e0accc5f

View 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;