From 14f6d1996ec38620b1c05a3b6c0e26dd21801fac Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 17 Aug 2020 21:59:48 +0200 Subject: [PATCH] tldap: Always remove ourselves from ld->pending at cleanup time Bug: https://bugzilla.samba.org/show_bug.cgi?id=14465 Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- source3/lib/tldap.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c index 9274db126c4..09f8446677d 100644 --- a/source3/lib/tldap.c +++ b/source3/lib/tldap.c @@ -529,14 +529,7 @@ static void tldap_msg_unset_pending(struct tevent_req *req) static void tldap_msg_cleanup(struct tevent_req *req, enum tevent_req_state req_state) { - switch (req_state) { - case TEVENT_REQ_USER_ERROR: - case TEVENT_REQ_RECEIVED: - tldap_msg_unset_pending(req); - return; - default: - return; - } + tldap_msg_unset_pending(req); } static bool tldap_msg_set_pending(struct tevent_req *req)