s3:rpc_client: don't mix layers and keep a reference to cli_state in the caller
commit582b1cdeb6c0b2145b55930421e8d48ad4754d04
authorStefan Metzmacher <metze@samba.org>
Mon, 29 Mar 2010 12:58:19 +0000 (29 14:58 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 13 Apr 2010 18:18:52 +0000 (13 20:18 +0200)
tree81e67fcd8cbfbb8d22a04b139bfc674d47613c51
parent3ea35cd6bb61806ed502e4cd3f386c35a6f58156
s3:rpc_client: don't mix layers and keep a reference to cli_state in the caller

We should not rely on the backend to have a reference to the cli_state.
This will make it possible for the backend to set its cli_state reference
to NULL, when the transport is dead.

metze
(cherry picked from commit dc09b12681ea0e6d4c2b0f1c99dfeb1f23019c65)
(cherry picked from commit 1e2e47da82aeb249dce431541738a62cb139aebb)

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