git.samba.org
/
obnox
/
samba-ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00ed3e2
)
lib/async_sock: handle queue = NULL in writev_send()
author
Stefan Metzmacher
<metze@samba.org>
Mon, 22 Mar 2010 09:12:42 +0000
(10:12 +0100)
committer
Michael Adam
<obnox@samba.org>
Fri, 26 Mar 2010 11:43:03 +0000
(12:43 +0100)
metze
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 39705f45bb251ec6386b3ecaa767da18bb8ffbfc..09ab7d01b51492b82ec0a7b86ce33944f89e97df 100644
(file)
--- a/
lib/async_req/async_sock.c
+++ b/
lib/async_req/async_sock.c
@@
-404,6
+404,13
@@
struct tevent_req *writev_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
goto fail;
}
+ if (queue == NULL) {
+ writev_trigger(result, NULL);
+ if (!tevent_req_is_in_progress(result)) {
+ return tevent_req_post(result, ev);
+ }
+ return result;
+ }
if (!tevent_queue_add(queue, ev, result, writev_trigger, NULL)) {
goto fail;
}