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

mdssvc: check if the user closed the query before trying to read the HTTP response from Elasticsearch

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Noel Power <npower@samba.org>

Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Wed Aug  3 14:00:36 UTC 2022 on sn-devel-184
This commit is contained in:
Ralph Boehme 2021-11-19 13:24:50 +01:00 committed by Noel Power
parent c9ecd33ad7
commit 61c6a00f55

View File

@ -685,7 +685,7 @@ static void mds_es_search_http_send_done(struct tevent_req *subreq)
return;
}
if (state->s->mds_es_ctx == NULL) {
if (state->s->mds_es_ctx == NULL || state->s->slq == NULL) {
tevent_req_done(req);
return;
}