diff options
author | dartraiden <wowemuh@gmail.com> | 2023-09-16 22:53:10 +0300 |
---|---|---|
committer | dartraiden <wowemuh@gmail.com> | 2023-09-16 22:53:10 +0300 |
commit | 47346b568cae68439c3d39f06f8c4ab14911475d (patch) | |
tree | 617c91959e8c606a315a1aaaf13a38f5b7333e9a /libs/libcurl/src/smb.c | |
parent | cb1787afbb67184321f206f13f836b63cd06740a (diff) |
libcurl: update to 8.3.0
Diffstat (limited to 'libs/libcurl/src/smb.c')
-rw-r--r-- | libs/libcurl/src/smb.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/libs/libcurl/src/smb.c b/libs/libcurl/src/smb.c index c1e3f9d593..75fa4614d4 100644 --- a/libs/libcurl/src/smb.c +++ b/libs/libcurl/src/smb.c @@ -564,12 +564,11 @@ static CURLcode smb_send(struct Curl_easy *data, ssize_t len, size_t upload_size)
{
struct connectdata *conn = data->conn;
- curl_socket_t sockfd = conn->sock[FIRSTSOCKET];
struct smb_conn *smbc = &conn->proto.smbc;
ssize_t bytes_written;
CURLcode result;
- result = Curl_write(data, sockfd, data->state.ulbuf,
+ result = Curl_nwrite(data, FIRSTSOCKET, data->state.ulbuf,
len, &bytes_written);
if(result)
return result;
@@ -587,7 +586,6 @@ static CURLcode smb_send(struct Curl_easy *data, ssize_t len, static CURLcode smb_flush(struct Curl_easy *data)
{
struct connectdata *conn = data->conn;
- curl_socket_t sockfd = conn->sock[FIRSTSOCKET];
struct smb_conn *smbc = &conn->proto.smbc;
ssize_t bytes_written;
ssize_t len = smbc->send_size - smbc->sent;
@@ -596,9 +594,9 @@ static CURLcode smb_flush(struct Curl_easy *data) if(!smbc->send_size)
return CURLE_OK;
- result = Curl_write(data, sockfd,
- data->state.ulbuf + smbc->sent,
- len, &bytes_written);
+ result = Curl_nwrite(data, FIRSTSOCKET,
+ data->state.ulbuf + smbc->sent,
+ len, &bytes_written);
if(result)
return result;
|