From fe06e1b0a3c06ffa859fa0d5e52ed4cc59de0950 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 22 Jun 2013 13:06:34 +0200 Subject: [PATCH] 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 Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Tue Jul 23 02:05:19 CEST 2013 on sn-devel-104 --- 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 76b644c6c185..9278a3f71613 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; -- 2.34.1