First part of fix for bug #7159 - client rpc_transport doesn't cope with bad server...
commitad77ae1d5870e06f8587ecf634e0b6bdcbb950d7
authorJeremy Allison <jra@samba.org>
Fri, 19 Feb 2010 22:18:51 +0000 (19 14:18 -0800)
committerJeremy Allison <jra@samba.org>
Fri, 19 Feb 2010 22:26:12 +0000 (19 14:26 -0800)
tree595e7b550fb7fe644280499689d7bd0c543bcd69
parentfff7750618ca7e92b7eaea541cd917d778b51a35
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.
source3/rpc_client/rpc_transport_np.c
source3/rpc_client/rpc_transport_sock.c