Revert "librpc/rpc: reset the assoc_group_id when setting the binding endpoint"
authorStefan Metzmacher <metze@samba.org>
Tue, 18 Mar 2014 12:23:58 +0000 (13:23 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 4 Jun 2019 10:43:20 +0000 (12:43 +0200)
This reverts commit 6b96669dfed2e18a2c07e83559e3965c2777330b.

librpc/rpc/binding.c

index e4ca43bbc08ed3c7e50011c1ee2fa78d08089b3a..56487f69f30dbbc97f178d3421c431b70eb4d12c 100644 (file)
@@ -835,15 +835,10 @@ _PUBLIC_ NTSTATUS dcerpc_binding_set_string_option(struct dcerpc_binding *b,
        struct {
                const char *name;
                const char **ptr;
-               bool reset_assoc_group;
 #define _SPECIAL(x) { .name = #x, .ptr = &b->x, }
        } specials[] = {
                _SPECIAL(host),
-               {
-                       .name = "endpoint",
-                       .ptr = &b->endpoint,
-                       .reset_assoc_group = true
-               },
+               _SPECIAL(endpoint),
                _SPECIAL(target_hostname),
                _SPECIAL(target_principal),
 #undef _SPECIAL
@@ -924,9 +919,6 @@ _PUBLIC_ NTSTATUS dcerpc_binding_set_string_option(struct dcerpc_binding *b,
                if (value == NULL) {
                        talloc_free(tmp);
                        *specials[i].ptr = NULL;
-                       if (specials[i].reset_assoc_group) {
-                               b->assoc_group_id = 0;
-                       }
                        return NT_STATUS_OK;
                }
 
@@ -941,9 +933,6 @@ _PUBLIC_ NTSTATUS dcerpc_binding_set_string_option(struct dcerpc_binding *b,
                }
                talloc_free(tmp);
 
-               if (specials[i].reset_assoc_group) {
-                       b->assoc_group_id = 0;
-               }
                return NT_STATUS_OK;
        }