smb: Close the connection after a failed client write

This commit is contained in:
Bill Nagel 2014-12-29 16:04:04 -05:00 committed by Steve Holme
parent cfc863869f
commit cfa0ac7aff

View File

@ -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;