smbd: Fix CID 1035536 Uninitialized pointer read
authorVolker Lendecke <vl@samba.org>
Sat, 22 Jun 2013 11:06:34 +0000 (13:06 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 23 Jul 2013 00:05:16 +0000 (02:05 +0200)
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

source3/smbd/lanman.c

index 76b644c6c1856f0194672187d4cfe01984a50154..9278a3f71613717d328e7d111acff588711d81f6 100644 (file)
@@ -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;