diff options
author | Volker Lendecke <vl@samba.org> | 2020-08-17 21:59:48 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2020-08-21 19:14:33 +0000 |
commit | 14f6d1996ec38620b1c05a3b6c0e26dd21801fac (patch) | |
tree | c90fd6733bd10a15d09a24895a444f9661f5a296 /source3 | |
parent | f816ccb8f4d212fe7f6bf36f90cbb9297c899786 (diff) | |
download | samba-14f6d1996ec38620b1c05a3b6c0e26dd21801fac.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>
Diffstat (limited to 'source3')
-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) |