diff options
author | Patrick Monnerat <patrick@monnerat.net> | 2021-10-25 13:54:57 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-10-25 23:33:41 +0200 |
commit | fa84ce347f6e54c6f6ebbd25506aa32f5fe7aa54 (patch) | |
tree | a76b2566fef4eede210f74e9a20a9cfc7baec917 /configure.ac | |
parent | 8d9af7062b3a5beecfa18f17b23c88680fb78dbb (diff) | |
download | curl-fa84ce347f6e54c6f6ebbd25506aa32f5fe7aa54.tar.gz |
sendf: accept zero-length data in Curl_client_write()
Historically, Curl_client_write() used a length value of 0 as a marker
for a null-terminated data string. This feature has been removed in
commit f4b85d2. To detect leftover uses of the feature, a DEBUGASSERT
statement rejecting a length with value 0 was introduced, effectively
precluding use of this function with zero-length data.
The current commit removes the DEBUGASSERT and makes the function to
return immediately if length is 0.
A direct effect is to fix trying to output a zero-length distinguished
name in openldap.
Another DEBUGASSERT statement is also rephrased for better readability.
Closes #7898
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions