mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
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,
|
||||
(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;
|
||||
|
Loading…
Reference in New Issue
Block a user