mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
smb: fix unused return code warning
This commit is contained in:
parent
6ea4ee94f9
commit
fc32b81382
10
lib/smb.c
10
lib/smb.c
@ -719,9 +719,13 @@ static CURLcode smb_request_state(struct connectdata *conn, bool *done)
|
|||||||
sizeof(struct smb_header) + 11));
|
sizeof(struct smb_header) + 11));
|
||||||
off = smb_swap16(*(unsigned short *)((char *)msg +
|
off = smb_swap16(*(unsigned short *)((char *)msg +
|
||||||
sizeof(struct smb_header) + 13));
|
sizeof(struct smb_header) + 13));
|
||||||
if(len > 0)
|
if(len > 0) {
|
||||||
Curl_client_write(conn, CLIENTWRITE_BODY,
|
result = Curl_client_write(conn, CLIENTWRITE_BODY,
|
||||||
(char *)msg + off + sizeof(unsigned int), len);
|
(char *)msg + off + sizeof(unsigned int),
|
||||||
|
len);
|
||||||
|
if(result)
|
||||||
|
return result;
|
||||||
|
}
|
||||||
conn->data->req.bytecount += len;
|
conn->data->req.bytecount += len;
|
||||||
conn->data->req.offset += len;
|
conn->data->req.offset += len;
|
||||||
Curl_pgrsSetDownloadCounter(conn->data, conn->data->req.bytecount);
|
Curl_pgrsSetDownloadCounter(conn->data, conn->data->req.bytecount);
|
||||||
|
Loading…
Reference in New Issue
Block a user