summaryrefslogtreecommitdiff
path: root/source3/smbd/lanman.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-06-22 13:06:34 +0200
committerJeremy Allison <jra@samba.org>2013-07-23 02:05:16 +0200
commitfe06e1b0a3c06ffa859fa0d5e52ed4cc59de0950 (patch)
treec53347b64cae7ed6f4f39ce46b6814550a9d046b /source3/smbd/lanman.c
parentd7da8dabaa94af6662741c8ce8efdf87c34c03d2 (diff)
downloadsamba-fe06e1b0a3c06ffa859fa0d5e52ed4cc59de0950.tar.gz
smbd: Fix CID 1035536 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> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Jul 23 02:05:19 CEST 2013 on sn-devel-104
Diffstat (limited to 'source3/smbd/lanman.c')
-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 76b644c6c18..9278a3f7161 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -2525,7 +2525,7 @@ static bool api_NetUserGetGroups(struct smbd_server_connection *sconn,
uint32_t i;
char *endp = NULL;
- struct rpc_pipe_client *samr_pipe;
+ struct rpc_pipe_client *samr_pipe = NULL;
struct policy_handle samr_handle, domain_handle, user_handle;
struct lsa_String name;
struct lsa_Strings names;