mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
cfilter: move a debug-only check into ifdef DEBUGBUILD
Pointed out by CodeSonar Closes #20756
This commit is contained in:
parent
b48d02179a
commit
61bcd1105a
@ -1089,13 +1089,14 @@ CURLcode Curl_conn_send(struct Curl_easy *data, int sockindex,
|
||||
const char *p = getenv("CURL_SMALLSENDS");
|
||||
if(p) {
|
||||
curl_off_t altsize;
|
||||
if(!curlx_str_number(&p, &altsize, write_len))
|
||||
if(!curlx_str_number(&p, &altsize, write_len)) {
|
||||
write_len = (size_t)altsize;
|
||||
if(write_len != len)
|
||||
eos = FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if(write_len != len)
|
||||
eos = FALSE;
|
||||
if(data && data->conn && data->conn->send[sockindex])
|
||||
return data->conn->send[sockindex](data, sockindex, buf, write_len, eos,
|
||||
pnwritten);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user