]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
mdssvc: check if the user closed the query before trying to read the HTTP response...
authorRalph Boehme <slow@samba.org>
Fri, 19 Nov 2021 12:24:50 +0000 (13:24 +0100)
committerNoel Power <npower@samba.org>
Wed, 3 Aug 2022 14:00:36 +0000 (14:00 +0000)
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

source3/rpc_server/mdssvc/mdssvc_es.c

index 97e0d99fed2b648e4b9c2bd6b85008e91d31e934..dafb42610fae3b2456fee21b4917e7a5e0ddb3fe 100644 (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;
        }