diff options
author | Bill Nagel <wnagel@tycoint.com> | 2014-12-29 16:04:04 -0500 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-12-29 23:46:33 +0000 |
commit | cfa0ac7aff6dedd43294226ef683c0e44c9d7691 (patch) | |
tree | 120c0209b7edf7d6432d4962672a6c3d4d1a8cb6 /lib/smb.c | |
parent | cfc863869f3d5ec9f230108ef71064e80e911ae7 (diff) | |
download | curl-cfa0ac7aff6dedd43294226ef683c0e44c9d7691.tar.gz |
smb: Close the connection after a failed client write
Diffstat (limited to 'lib/smb.c')
-rw-r--r-- | lib/smb.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; |