summaryrefslogtreecommitdiff
path: root/lib/curl_rtmp.c
diff options
context:
space:
mode:
authorPatrick Monnerat <patrick@monnerat.net>2021-01-21 00:38:52 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-24 18:15:03 +0100
commitecb13416e316fc1c781f865d2bb7e74462ef793b (patch)
tree9aa6952ee7245220c75337e01f1e7762237a5f45 /lib/curl_rtmp.c
parent14e075d1a7fd58c78145bccbd53e679a3b691f5e (diff)
downloadcurl-ecb13416e316fc1c781f865d2bb7e74462ef793b.tar.gz
lib: remove conn->data uses
Closes #6499
Diffstat (limited to 'lib/curl_rtmp.c')
-rw-r--r--lib/curl_rtmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/curl_rtmp.c b/lib/curl_rtmp.c
index 9ac9611ea..fabdc8848 100644
--- a/lib/curl_rtmp.c
+++ b/lib/curl_rtmp.c
@@ -223,7 +223,7 @@ static CURLcode rtmp_connect(struct Curl_easy *data, bool *done)
/* We have to know if it's a write before we send the
* connect request packet
*/
- if(conn->data->set.upload)
+ if(data->set.upload)
r->Link.protocol |= RTMP_FEATURE_WRITE;
/* For plain streams, use the buffer toggle trick to keep data flowing */
@@ -255,7 +255,7 @@ static CURLcode rtmp_do(struct Curl_easy *data, bool *done)
if(!RTMP_ConnectStream(r, 0))
return CURLE_FAILED_INIT;
- if(conn->data->set.upload) {
+ if(data->set.upload) {
Curl_pgrsSetUploadSize(data, data->state.infilesize);
Curl_setup_transfer(data, -1, -1, FALSE, FIRSTSOCKET);
}