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 e763b581f4d4ba19a42ad5906605d814950db51b..a79a569477203eb66753db153f894a1d1b12be11 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 abfb5c0b8944f219b590d8dc29a1223bad6da8cc..557883090af6297ec6d97d853ed45968da77a6c6 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;
 };