From cfa0ac7aff6dedd43294226ef683c0e44c9d7691 Mon Sep 17 00:00:00 2001 From: Bill Nagel Date: Mon, 29 Dec 2014 16:04:04 -0500 Subject: smb: Close the connection after a failed client write --- lib/smb.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/smb.c') diff --git a/lib/smb.c b/lib/smb.c index a097c8919..2f8513384 100644 --- a/lib/smb.c +++ b/lib/smb.c @@ -769,8 +769,11 @@ static CURLcode smb_request_state(struct connectdata *conn, bool *done) result = Curl_client_write(conn, CLIENTWRITE_BODY, (char *)msg + off + sizeof(unsigned int), len); - if(result) - return result; + if(result) { + req->result = result; + next_state = SMB_CLOSE; + break; + } } conn->data->req.bytecount += len; conn->data->req.offset += len; -- cgit v1.2.3