summaryrefslogtreecommitdiff
path: root/source3/lib/tldap.c
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 /source3/lib/tldap.c
parent8e1b9640e73bf08b161f6e9a3d86ec71708098a4 (diff)
downloadsamba-f0ff6f390a14b0da8466096c0886f5c4860b977f.tar.gz
samba-f0ff6f390a14b0da8466096c0886f5c4860b977f.tar.bz2
samba-f0ff6f390a14b0da8466096c0886f5c4860b977f.zip
Use tevent_req_oom
This fixes a few Coverity errors
Diffstat (limited to 'source3/lib/tldap.c')
-rw-r--r--source3/lib/tldap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c
index c2f5b2ced7..8b04d00636 100644
--- a/source3/lib/tldap.c
+++ b/source3/lib/tldap.c
@@ -541,7 +541,7 @@ static void tldap_msg_sent(struct tevent_req *subreq)
}
if (!tldap_msg_set_pending(req)) {
- tevent_req_nomem(NULL, req);
+ tevent_req_oom(req);
return;
}
}
@@ -1703,7 +1703,7 @@ static void tldap_search_done(struct tevent_req *subreq)
case TLDAP_RES_SEARCH_ENTRY:
case TLDAP_RES_SEARCH_REFERENCE:
if (!tldap_msg_set_pending(subreq)) {
- tevent_req_nomem(NULL, req);
+ tevent_req_oom(req);
return;
}
tevent_req_notify_callback(req);