From: Andrew Tridgell Date: Wed, 9 Nov 2005 14:00:31 +0000 (+0000) Subject: r11609: fixed handling of one way requests with new send code X-Git-Url: http://git.samba.org/samba.git/?p=jelmer%2Fsamba4-debian.git;a=commitdiff_plain;h=d2b568a1114015839ca59c6f32bde4b06ea81ef9 r11609: fixed handling of one way requests with new send code --- diff --git a/source/libcli/raw/clitransport.c b/source/libcli/raw/clitransport.c index aafdfca74..bc00b19ef 100644 --- a/source/libcli/raw/clitransport.c +++ b/source/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,