summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-06-22 13:06:34 +0200
committerJeremy Allison <jra@samba.org>2013-07-22 15:07:55 -0700
commitd7da8dabaa94af6662741c8ce8efdf87c34c03d2 (patch)
tree002ae89ef472e906e64f2c6c54bc2c99d5e0bf2b
parenta1e0accc5f4f33ce296bad79a088499cf082d9b5 (diff)
downloadsamba-d7da8dabaa94af6662741c8ce8efdf87c34c03d2.tar.gz
samba-d7da8dabaa94af6662741c8ce8efdf87c34c03d2.tar.bz2
samba-d7da8dabaa94af6662741c8ce8efdf87c34c03d2.zip
smbd: Fix CID 1035537 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>
-rw-r--r--source3/smbd/lanman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index a21e715679..76b644c6c1 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -2341,7 +2341,7 @@ static bool api_RNetGroupEnum(struct smbd_server_connection *sconn,
uint32_t num_groups;
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;
struct dcerpc_binding_handle *b;