summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-11-09 14:00:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:45:58 -0500
commitac842774e4538d3e25159f1ff0bc273bc3c5faeb (patch)
treeb91a8ca6aecd1a753117530e429ef8f74173cf79
parent549b6dfdba2e130ae3be2610b8caddee614af828 (diff)
downloadsamba-ac842774e4538d3e25159f1ff0bc273bc3c5faeb.tar.gz
samba-ac842774e4538d3e25159f1ff0bc273bc3c5faeb.tar.bz2
samba-ac842774e4538d3e25159f1ff0bc273bc3c5faeb.zip
r11609: fixed handling of one way requests with new send code
(This used to be commit d2b568a1114015839ca59c6f32bde4b06ea81ef9)
-rw-r--r--source4/libcli/raw/clitransport.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/libcli/raw/clitransport.c b/source4/libcli/raw/clitransport.c
index aafdfca74c..bc00b19ef5 100644
--- a/source4/libcli/raw/clitransport.c
+++ b/source4/libcli/raw/clitransport.c
@@ -571,11 +571,12 @@ void smbcli_transport_send(struct smbcli_request *req)
if (req->one_way_request) {
req->state = SMBCLI_REQUEST_DONE;
smbcli_request_destroy(req);
- } else {
- req->state = SMBCLI_REQUEST_RECV;
- DLIST_ADD(req->transport->pending_recv, req);
+ return;
}
+ req->state = SMBCLI_REQUEST_RECV;
+ DLIST_ADD(req->transport->pending_recv, req);
+
/* add a timeout */
if (req->transport->options.request_timeout) {
event_add_timed(req->transport->socket->event.ctx, req,