First part of fix for bug #7159 - client rpc_transport doesn't cope with bad server...
commitd13c73510529d820dc2f5ff48b3f9a4b72a5db53
authorJeremy Allison <jra@samba.org>
Fri, 19 Feb 2010 22:18:51 +0000 (19 14:18 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 29 Mar 2010 07:40:59 +0000 (29 09:40 +0200)
tree967a67a38e083e6cbbd7cb2880f47709d46fe0da
parenta83ad62de26c26fb0731f4052bb396bbc4efc606
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)
(cherry picked from commit 6e5b6b5acb30869eb63b25ed1406014101a5e89d)
source3/rpc_client/rpc_transport_np.c
source3/rpc_client/rpc_transport_sock.c