First part of fix for bug #7159 - client rpc_transport doesn't cope with bad server...
authorStefan Metzmacher <metze@samba.org>
Tue, 6 Apr 2010 10:20:02 +0000 (12:20 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 7 Apr 2010 09:04:15 +0000 (11:04 +0200)
commita22cfb021e43382f9109972acbe4b9e2faefe3ab
treeef933837093d798f3f180e9ff4509a0c245556c0
parentd6d932f6d1cc3b780e038f87a269fc667caab7b0
First part of fix for bug #7159 - client rpc_transport doesn't cope with bad server data returns.

Ensure that subreq is *always* talloc_free'd in the _done
function, as it has an event timeout attached. If the
read requests look longer than the cli->timeout, then
the timeout fn is called with already freed data.

Jeremy.
(cherry picked from commit ad77ae1d5870e06f8587ecf634e0b6bdcbb950d7)
(similar to commit 6e5b6b5acb30869eb63b25ed1406014101a5e89d)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/rpc_client/rpc_transport_np.c
source3/rpc_client/rpc_transport_sock.c