smb: Close the connection after a failed client write
This commit is contained in:
parent
cfc863869f
commit
cfa0ac7aff
@ -769,8 +769,11 @@ static CURLcode smb_request_state(struct connectdata *conn, bool *done)
|
|||||||
result = Curl_client_write(conn, CLIENTWRITE_BODY,
|
result = Curl_client_write(conn, CLIENTWRITE_BODY,
|
||||||
(char *)msg + off + sizeof(unsigned int),
|
(char *)msg + off + sizeof(unsigned int),
|
||||||
len);
|
len);
|
||||||
if(result)
|
if(result) {
|
||||||
return result;
|
req->result = result;
|
||||||
|
next_state = SMB_CLOSE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
conn->data->req.bytecount += len;
|
conn->data->req.bytecount += len;
|
||||||
conn->data->req.offset += len;
|
conn->data->req.offset += len;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user