mirror of
https://github.com/curl/curl.git
synced 2026-04-14 21:51:41 +03:00
rtsp: use explicit postfieldsize if specified
Signed-off-by: Joshua Rogers <MegaManSec@users.noreply.github.com> Closes #19345
This commit is contained in:
parent
63e9721b63
commit
feab390124
1 changed files with 2 additions and 1 deletions
|
|
@ -298,7 +298,8 @@ static CURLcode rtsp_setup_body(struct Curl_easy *data,
|
|||
}
|
||||
else {
|
||||
if(data->set.postfields) {
|
||||
size_t plen = strlen(data->set.postfields);
|
||||
size_t plen = (data->set.postfieldsize >= 0) ?
|
||||
(size_t)data->set.postfieldsize : strlen(data->set.postfields);
|
||||
req_clen = (curl_off_t)plen;
|
||||
result = Curl_creader_set_buf(data, data->set.postfields, plen);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue