git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9df07e6
)
lib: Fix CID 1306764 Unchecked return value
author
Volker Lendecke
<vl@samba.org>
Tue, 16 Jun 2015 06:12:47 +0000
(06:12 +0000)
committer
Volker Lendecke
<vl@samba.org>
Tue, 16 Jun 2015 14:33:10 +0000
(16:33 +0200)
tevent_req_oom exists right for this case :-)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: "Stefan (metze) Metzmacher" <metze@samba.org>
lib/async_req/async_sock.c
patch
|
blob
|
history
diff --git
a/lib/async_req/async_sock.c
b/lib/async_req/async_sock.c
index 03bda588661e67e3d77276c4a8a654e665583e70..89272ee50025196b7e0ff6684b79c76e5cbec9c4 100644
(file)
--- 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;