summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-04-23 15:36:28 +0200
committerJeremy Allison <jra@samba.org>2018-04-24 19:41:15 +0200
commita37d9a45d1ff1b5d311d190a8aac49bc2b2c7a9f (patch)
treec70e12f1796042b9c42b88145bf08691ff3e6351 /libcli
parent4fa8e5671584025d9553cac00210aca7ef62695a (diff)
downloadsamba-a37d9a45d1ff1b5d311d190a8aac49bc2b2c7a9f.tar.gz
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 <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r--libcli/cldap/cldap.c1
-rw-r--r--libcli/dns/dns.c1
2 files changed, 0 insertions, 2 deletions
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);
}