From d5ec44ca4cca9bbe6c21a1d2a94b37cba77661ff Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 15 Apr 2014 13:49:18 +0200 Subject: INFILESIZE: fields in UserDefined must not be changed run-time set.infilesize in this case was modified in several places, which could lead to repeated requests using the same handle to get unintendent/wrong consequences based on what the previous request did! --- lib/curl_rtmp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/curl_rtmp.c') diff --git a/lib/curl_rtmp.c b/lib/curl_rtmp.c index 45da35ca0..e0c24b036 100644 --- a/lib/curl_rtmp.c +++ b/lib/curl_rtmp.c @@ -5,6 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * + * Copyright (C) 2012 - 2014, Daniel Stenberg, , et al. * Copyright (C) 2010, Howard Chu, * * This software is licensed as described in the file COPYING, which @@ -240,7 +241,7 @@ static CURLcode rtmp_do(struct connectdata *conn, bool *done) return CURLE_FAILED_INIT; if(conn->data->set.upload) { - Curl_pgrsSetUploadSize(conn->data, conn->data->set.infilesize); + Curl_pgrsSetUploadSize(conn->data, conn->data->state.infilesize); Curl_setup_transfer(conn, -1, -1, FALSE, NULL, FIRSTSOCKET, NULL); } else -- cgit v1.2.3