diff options
author | Volker Lendecke <vl@samba.org> | 2011-06-19 21:10:01 +0200 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-06-20 12:33:24 +0200 |
commit | f0ff6f390a14b0da8466096c0886f5c4860b977f (patch) | |
tree | e359c3be54f1e7ca8e4125706ec6e6194f956214 /source3/lib | |
parent | 8e1b9640e73bf08b161f6e9a3d86ec71708098a4 (diff) | |
download | samba-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')
-rw-r--r-- | source3/lib/fncall.c | 2 | ||||
-rw-r--r-- | source3/lib/tldap.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/fncall.c b/source3/lib/fncall.c index 4a013e9ee6..6e6b7c9250 100644 --- a/source3/lib/fncall.c +++ b/source3/lib/fncall.c @@ -266,7 +266,7 @@ struct tevent_req *fncall_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, return tevent_req_post(req, ev); } if (!fncall_set_pending(req, state->ctx, ev)) { - tevent_req_nomem(NULL, req); + tevent_req_oom(req); return tevent_req_post(req, ev); } return req; 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); |