diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libcli/raw/clitransport.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/libcli/raw/clitransport.c b/source4/libcli/raw/clitransport.c index 0ced607b1e..f5e81cd6f6 100644 --- a/source4/libcli/raw/clitransport.c +++ b/source4/libcli/raw/clitransport.c @@ -593,6 +593,13 @@ void smbcli_transport_send(struct smbcli_request *req) return; } + packet_queue_run(req->transport->packet); + if (req->transport->socket->sock == NULL) { + req->state = SMBCLI_REQUEST_ERROR; + req->status = NT_STATUS_NET_WRITE_FAULT; + return; + } + if (req->one_way_request) { req->state = SMBCLI_REQUEST_DONE; smbcli_request_destroy(req); |