Fix Coverity ID 514
authorVolker Lendecke <vl@samba.org>
Sun, 23 Mar 2008 18:43:36 +0000 (19:43 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 23 Mar 2008 18:44:55 +0000 (19:44 +0100)
Not exactly an uninitialized variable, but having Coverity figure out that
we're only UNMARSHALLING here is probably asking for a bit too much.

source/rpc_server/srv_pipe.c

index f33ee88aec4e57dcc57c7d87734bc5c6c5f03e8d..05cdb65a8317cba332852a8f91218bfd3bdf4f80 100644 (file)
@@ -1593,6 +1593,8 @@ bool api_pipe_bind_req(pipes_struct *p, prs_struct *rpc_in_p)
                }
        }
 
+       ZERO_STRUCT(hdr_rb);
+
        /* decode the bind request */
        if(!smb_io_rpc_hdr_rb("", &hdr_rb, rpc_in_p, 0))  {
                DEBUG(0,("api_pipe_bind_req: unable to unmarshall RPC_HDR_RB struct.\n"));