summaryrefslogtreecommitdiff
path: root/libcli/cldap
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-06-19 21:10:01 +0200
committerVolker Lendecke <vlendec@samba.org>2011-06-20 12:33:24 +0200
commitf0ff6f390a14b0da8466096c0886f5c4860b977f (patch)
treee359c3be54f1e7ca8e4125706ec6e6194f956214 /libcli/cldap
parent8e1b9640e73bf08b161f6e9a3d86ec71708098a4 (diff)
downloadsamba-f0ff6f390a14b0da8466096c0886f5c4860b977f.tar.gz
Use tevent_req_oom
This fixes a few Coverity errors
Diffstat (limited to 'libcli/cldap')
-rw-r--r--libcli/cldap/cldap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcli/cldap/cldap.c b/libcli/cldap/cldap.c
index 59c54eabea9..a5a0e415988 100644
--- a/libcli/cldap/cldap.c
+++ b/libcli/cldap/cldap.c
@@ -631,7 +631,7 @@ struct tevent_req *cldap_search_send(TALLOC_CTX *mem_ctx,
}
if (!tevent_req_set_endtime(req, state->caller.cldap->event.ctx, end)) {
- tevent_req_nomem(NULL, req);
+ tevent_req_oom(req);
goto post;
}
@@ -680,7 +680,7 @@ static void cldap_search_state_queue_done(struct tevent_req *subreq)
/* wait for incoming traffic */
if (!cldap_recvfrom_setup(state->caller.cldap)) {
- tevent_req_nomem(NULL, req);
+ tevent_req_oom(req);
return;
}