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:
parent
a6a0d238b3
commit
a1e0accc5f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user