s3:rpc_server: make sure we don't send uninitialized memory for the named_pipe_auth...
authorStefan Metzmacher <metze@samba.org>
Wed, 26 May 2010 08:43:19 +0000 (10:43 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 27 May 2010 05:13:52 +0000 (07:13 +0200)
metze

source3/rpc_server/srv_pipe_hnd.c

index 075d705ef0df9bdc9a7590f05e60f8a4901aa961..7b8602b0d634baa71eb895ffa8125484d91ffe0b 100644 (file)
@@ -1033,7 +1033,7 @@ static struct np_proxy_state *make_external_rpc_pipe_p(TALLOC_CTX *mem_ctx,
        }
        unbecome_root();
 
-       info3 = talloc(talloc_tos(), struct netr_SamInfo3);
+       info3 = talloc_zero(talloc_tos(), struct netr_SamInfo3);
        if (info3 == NULL) {
                DEBUG(0, ("talloc failed\n"));
                goto fail;