s3:rpc_client: don't mix layers and keep a reference to cli_state in the caller
commit1e2e47da82aeb249dce431541738a62cb139aebb
authorStefan Metzmacher <metze@samba.org>
Mon, 29 Mar 2010 12:58:19 +0000 (29 14:58 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 30 Mar 2010 07:43:00 +0000 (30 09:43 +0200)
treefde3d5c67e24b58a55138be7215f8b983c4c2a1a
parent8d576661d15f1c032a4fe17ed03bfeb376039bdb
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)
source3/rpc_client/cli_pipe.c