smb: fix unused return code warning

This commit is contained in:
Daniel Stenberg 2014-12-09 13:38:55 +01:00
parent 6ea4ee94f9
commit fc32b81382

View File

@ -719,9 +719,13 @@ static CURLcode smb_request_state(struct connectdata *conn, bool *done)
sizeof(struct smb_header) + 11));
off = smb_swap16(*(unsigned short *)((char *)msg +
sizeof(struct smb_header) + 13));
if(len > 0)
Curl_client_write(conn, CLIENTWRITE_BODY,
(char *)msg + off + sizeof(unsigned int), len);
if(len > 0) {
result = Curl_client_write(conn, CLIENTWRITE_BODY,
(char *)msg + off + sizeof(unsigned int),
len);
if(result)
return result;
}
conn->data->req.bytecount += len;
conn->data->req.offset += len;
Curl_pgrsSetDownloadCounter(conn->data, conn->data->req.bytecount);