]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tldap: Fix CID 1664062: Error handling issues (CHECKED_RETURN)
authorVolker Lendecke <vl@samba.org>
Mon, 18 Aug 2025 08:44:46 +0000 (10:44 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 18 Aug 2025 12:04:39 +0000 (12:04 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
source3/lib/tldap.c

index 7b1d04064e2b271a47093205f95fefccde1daa32..e003fe15f6ea9980865af36916a169424d7c6a2e 100644 (file)
@@ -1907,8 +1907,14 @@ struct tevent_req *tldap_search_send(TALLOC_CTX *mem_ctx,
        }
        if (timelimit != 0) {
                struct timeval end;
+               bool ok;
+
                end = timeval_current_ofs(timelimit * 1.5F, 0);
-               tevent_req_set_endtime(subreq, ev, end);
+               ok = tevent_req_set_endtime(subreq, ev, end);
+               if (!ok) {
+                       tevent_req_oom(req);
+                       return tevent_req_post(req, ev);
+               }
        }
        tevent_req_set_callback(subreq, tldap_search_done, req);
        return req;