summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-06-16 06:12:47 +0000
committerVolker Lendecke <vl@samba.org>2015-06-16 16:33:10 +0200
commit90eefb1779131c25b588043457fc3c4f4e0521f4 (patch)
treedcba375802a69416c4372e6961464614672e54dc /lib
parent9df07e6f1bcea55fcdab777c3f45a1a6ca88f69e (diff)
downloadsamba-90eefb1779131c25b588043457fc3c4f4e0521f4.tar.gz
lib: Fix CID 1306764 Unchecked return value
tevent_req_oom exists right for this case :-) Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: "Stefan (metze) Metzmacher" <metze@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/async_req/async_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/async_req/async_sock.c b/lib/async_req/async_sock.c
index 03bda588661..89272ee5002 100644
--- a/lib/async_req/async_sock.c
+++ b/lib/async_req/async_sock.c
@@ -267,7 +267,7 @@ struct tevent_req *writev_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
}
if (!tevent_queue_add(queue, ev, req, writev_trigger, NULL)) {
- tevent_req_nomem(NULL, req);
+ tevent_req_oom(req);
return tevent_req_post(req, ev);
}
return req;