mirror of
https://github.com/curl/curl.git
synced 2026-06-03 13:14:15 +03:00
make sure data->set.postfields is non-NULL before doing strlen() on the
pointer. Bugs item #566835.
This commit is contained in:
parent
11ba367fc9
commit
fc37ef9e4b
1 changed files with 3 additions and 2 deletions
|
|
@ -924,8 +924,9 @@ CURLcode Curl_http(struct connectdata *conn)
|
|||
actually set your own */
|
||||
add_bufferf(req_buffer,
|
||||
"Content-Length: %d\r\n",
|
||||
(data->set.postfieldsize?data->set.postfieldsize:
|
||||
strlen(data->set.postfields)) );
|
||||
data->set.postfieldsize?
|
||||
data->set.postfieldsize:
|
||||
(data->set.postfields?strlen(data->set.postfields):0) );
|
||||
|
||||
if(!checkheaders(data, "Content-Type:"))
|
||||
add_bufferf(req_buffer,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue