From a37d9a45d1ff1b5d311d190a8aac49bc2b2c7a9f Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 23 Apr 2018 15:36:28 +0200 Subject: tevent: Fix callers of tevent_req_set_endtime tevent_req_set_endtime internally already calls tevent_req_nomem and thus sets the error status correctly. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- libcli/cldap/cldap.c | 1 - libcli/dns/dns.c | 1 - 2 files changed, 2 deletions(-) (limited to 'libcli') diff --git a/libcli/cldap/cldap.c b/libcli/cldap/cldap.c index 242a1173017..daba37a21d7 100644 --- a/libcli/cldap/cldap.c +++ b/libcli/cldap/cldap.c @@ -663,7 +663,6 @@ struct tevent_req *cldap_search_send(TALLOC_CTX *mem_ctx, } if (!tevent_req_set_endtime(req, state->caller.ev, end)) { - tevent_req_oom(req); goto post; } diff --git a/libcli/dns/dns.c b/libcli/dns/dns.c index c30de2d4add..1321b1d2d38 100644 --- a/libcli/dns/dns.c +++ b/libcli/dns/dns.c @@ -97,7 +97,6 @@ static struct tevent_req *dns_udp_request_send(TALLOC_CTX *mem_ctx, if (!tevent_req_set_endtime(req, ev, timeval_current_ofs(DNS_REQUEST_TIMEOUT, 0))) { - tevent_req_oom(req); return tevent_req_post(req, ev); } -- cgit v1.2.1