s3: Fix a segfault in the RPC server
authorVolker Lendecke <vl@samba.org>
Tue, 6 Jul 2010 13:07:05 +0000 (15:07 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 6 Jul 2010 13:11:31 +0000 (15:11 +0200)
commitb4c3f72d445a5659971b0080ab1eba88695d2a0d
tree923d5c7d1a535b89f2a61f80ed92ea9fbe2fb676
parent60a3cc850a27a14110541439c05387efb0312210
s3: Fix a segfault in the RPC server

After converting the rpc infratructure to talloc, read_from_internal_pipe freed
the outdata too early. If the last fragment was read in two pieces (as
rpcclient does it), all the outdata was freed during the read of the first
piece of the read of the last fragment. Later read&x calls, trying to read the
rest of the last fragment stepped into p->out_data.frag with non-zero offset
when this was already freed.
source3/rpc_server/srv_pipe_hnd.c