]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:rpc_server: make use of dcesrv_assoc_group_common_destructor()
authorStefan Metzmacher <metze@samba.org>
Wed, 11 Dec 2024 16:24:19 +0000 (17:24 +0100)
committerJule Anger <janger@samba.org>
Wed, 18 Dec 2024 09:51:41 +0000 (09:51 +0000)
Currently this should not be needed, but it's better to
call dcesrv_assoc_group_common_destructor() in all assoc_group
destructors.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15765

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 19657be71d7cec5ac58a5d6969dc1d6ae7c5b517)

Autobuild-User(v4-20-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-20-test): Wed Dec 18 09:51:41 UTC 2024 on atb-devel-224

source4/rpc_server/dcerpc_server.c

index e072cd20f95ae542febc076d99d040b54e34a799..e701503b4586432d5252bb2745a946b7dd790ead 100644 (file)
@@ -75,6 +75,9 @@ static struct dcesrv_assoc_group *dcesrv_assoc_group_reference(struct dcesrv_con
 static int dcesrv_assoc_group_destructor(struct dcesrv_assoc_group *assoc_group)
 {
        int ret;
+
+       dcesrv_assoc_group_common_destructor(assoc_group);
+
        ret = idr_remove(assoc_group->dce_ctx->assoc_groups_idr, assoc_group->id);
        if (ret != 0) {
                DEBUG(0,(__location__ ": Failed to remove assoc_group 0x%08x\n",