lib: remove strlen call from Curl_client_write

At all call sites with an explicit 0 len, pass an appropriate nonzero
len.

Closes #6954
This commit is contained in:
Jacob Hoffman-Andrews 2021-04-24 10:33:56 -07:00 committed by Daniel Stenberg
parent 6aae7b1761
commit f4b85d24b2
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 19 additions and 15 deletions

View file

@ -616,9 +616,8 @@ CURLcode Curl_client_write(struct Curl_easy *data,
size_t len)
{
struct connectdata *conn = data->conn;
if(0 == len)
len = strlen(ptr);
DEBUGASSERT(len);
DEBUGASSERT(type <= 3);
/* FTP data may need conversion. */