librpc/rpc: let dcerpc_binding_set_transport() also reset the assoc_group_id
authorStefan Metzmacher <metze@samba.org>
Tue, 18 Mar 2014 06:07:13 +0000 (07:07 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 24 Mar 2014 23:45:28 +0000 (00:45 +0100)
This is transport/endpoint specific.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
librpc/rpc/binding.c

index 4ee1c6260debb67d5e8f216f2238ac5e29539afe..90787655bbcc770a8518e339812652d094f955c5 100644 (file)
@@ -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;
 }