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)
committerKarolin Seeger <kseeger@samba.org>
Thu, 6 May 2010 12:08:34 +0000 (14:08 +0200)
commitb3c33308ac15e996770ad2c4a3762b1ee031f2a7
treeed3faf774ca6f3e4be818a4e612fc5c59fd157a0
parentfae056483f76ffca3c93a79c7e7a5a1684a5f670
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>
(cherry picked from commit 0223d59ea950c8180047fd5de6c85f92c4e37ad2)
source3/rpc_client/rpc_transport_np.c
source3/rpc_client/rpc_transport_sock.c