diff options
author | Volker Lendecke <vl@samba.org> | 2020-08-17 21:59:48 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2020-08-31 09:26:35 +0000 |
commit | 49afb56d4ad5eb5e311a145c5cc69620d3608e60 (patch) | |
tree | 254e3730c5a4ff32f3f0643b0bec0721652bae29 | |
parent | 334152a291b3a427c5e6ee842dd35768eed88017 (diff) | |
download | samba-49afb56d4ad5eb5e311a145c5cc69620d3608e60.tar.gz |
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 <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 14f6d1996ec38620b1c05a3b6c0e26dd21801fac)
-rw-r--r-- | source3/lib/tldap.c | 9 |
1 files changed, 1 insertions, 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) |