From 7782fbe12b2228304bcddf9ff9949ef38597f8d8 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 18 Mar 2014 07:07:13 +0100 Subject: librpc/rpc: let dcerpc_binding_set_transport() also reset the assoc_group_id This is transport/endpoint specific. Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- librpc/rpc/binding.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'librpc/rpc') diff --git a/librpc/rpc/binding.c b/librpc/rpc/binding.c index 4ee1c6260de..90787655bbc 100644 --- a/librpc/rpc/binding.c +++ b/librpc/rpc/binding.c @@ -548,12 +548,17 @@ _PUBLIC_ NTSTATUS dcerpc_binding_set_transport(struct dcerpc_binding *b, * This implicitly resets the endpoint * as the endpoint is transport specific. * + * It also resets the assoc group as it's + * also endpoint specific. + * * TODO: in future we may reset more options * here. */ talloc_free(tmp); b->endpoint = NULL; + b->assoc_group_id = 0; + return NT_STATUS_OK; } -- cgit v1.2.1