s3:rpc_client: don't mix layers and keep a reference to cli_state in the caller
authorStefan Metzmacher <metze@samba.org>
Mon, 29 Mar 2010 12:58:19 +0000 (14:58 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 7 Apr 2010 11:59:16 +0000 (13:59 +0200)
commitbaa12b3ba2d53d65a25920e293d34484f811ebb9
tree2c5533fe0e9d89ec41b694971d4e44fb32857a12
parent9498d95c02b5b596821df7438efe7900c9b52283
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