From 61c6a00f550a6ffc8fe704e15bc44134befc40c8 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Fri, 19 Nov 2021 13:24:50 +0100 Subject: [PATCH] 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 Reviewed-by: Noel Power Autobuild-User(master): Noel Power Autobuild-Date(master): Wed Aug 3 14:00:36 UTC 2022 on sn-devel-184 --- source3/rpc_server/mdssvc/mdssvc_es.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/rpc_server/mdssvc/mdssvc_es.c b/source3/rpc_server/mdssvc/mdssvc_es.c index 97e0d99fed2..dafb42610fa 100644 --- a/source3/rpc_server/mdssvc/mdssvc_es.c +++ b/source3/rpc_server/mdssvc/mdssvc_es.c @@ -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; }