s4:rpc_server: move bind_time_features to dcesrv_assoc_group
authorStefan Metzmacher <metze@samba.org>
Wed, 21 Nov 2018 22:39:11 +0000 (23:39 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 12 Jan 2019 02:13:37 +0000 (03:13 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/rpc_server/dcerpc_server.c
source4/rpc_server/dcerpc_server.h

index e763b58..a79a569 100644 (file)
@@ -1107,7 +1107,7 @@ static NTSTATUS dcesrv_bind(struct dcesrv_call_state *call)
                                DCERPC_BIND_TIME_KEEP_CONNECTION_ON_ORPHAN;
                }
 
-               call->conn->bind_time_features = a->reason.negotiate;
+               call->conn->assoc_group->bind_time_features = a->reason.negotiate;
        }
 
        /*
index abfb5c0..5578830 100644 (file)
@@ -310,9 +310,6 @@ struct dcesrv_connection {
         */
        const struct ndr_syntax_id *preferred_transfer;
 
-       /* the negotiated bind time features */
-       uint16_t bind_time_features;
-
        /*
         * This is used to block the connection during
         * pending authentication.
@@ -359,6 +356,9 @@ struct dcesrv_assoc_group {
        /* parent context */
        struct dcesrv_context *dce_ctx;
 
+       /* the negotiated bind time features */
+       uint16_t bind_time_features;
+
        /* Remote association group ID (if proxied) */
        uint32_t proxied_id;
 };