1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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>
This commit is contained in:
Volker Lendecke 2020-08-17 21:59:48 +02:00
parent f816ccb8f4
commit 14f6d1996e

View File

@ -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)