1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-05 09:18:06 +03:00

s4:lib/messaging: fix interaction between imessaging_reinit and irpc_destructor

This was missing in commit 0d09693119.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Sep 18 19:45:56 UTC 2024 on atb-devel-224

(cherry picked from commit a14320461e)

Autobuild-User(v4-21-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-21-test): Wed Oct  2 16:46:27 UTC 2024 on atb-devel-224
This commit is contained in:
Stefan Metzmacher 2024-09-17 08:29:42 +02:00 committed by Jule Anger
parent 0b3e0bc292
commit f36c7d623b

View File

@ -440,6 +440,15 @@ void imessaging_dgm_unref_ev(struct tevent_context *ev)
static NTSTATUS imessaging_reinit(struct imessaging_context *msg)
{
int ret = -1;
struct irpc_request *irpc = NULL;
struct irpc_request *next = NULL;
for (irpc = msg->requests; irpc != NULL; irpc = next) {
next = irpc->next;
DLIST_REMOVE(msg->requests, irpc);
irpc->callid = -1;
}
TALLOC_FREE(msg->msg_dgm_ref);