From: Stefan Metzmacher Date: Wed, 22 Jan 2014 11:51:47 +0000 (+0100) Subject: STEP04c: HACK s4 client use dcerpc_connection_is_connected and dcerpc_security_get_au... X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=19d1c6e2d093105a876202ba3386108c3a8d41a1 STEP04c: HACK s4 client use dcerpc_connection_is_connected and dcerpc_security_get_auth_info --- diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index b5bd3fb81b71..6b6dc028cd32 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -191,11 +191,7 @@ static bool dcerpc_bh_is_connected(struct dcerpc_binding_handle *h) return false; } - if (!hs->p->conn->conn) { - return false; - } - - return true; + return dcerpc_connection_is_connected(hs->p->conn->conn); } static uint32_t dcerpc_bh_set_timeout(struct dcerpc_binding_handle *h, @@ -230,8 +226,8 @@ static void dcerpc_bh_auth_info(struct dcerpc_binding_handle *h, return; } - *auth_type = hs->p->conn->security_state.auth_type; - *auth_level = hs->p->conn->security_state.auth_level; + dcerpc_security_get_auth_info(hs->p->conn->security_state.sec, + auth_type, auth_level); } struct dcerpc_bh_raw_call_state {