diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-01-18 11:56:50 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-01-18 22:54:47 +0100 |
commit | 566b77877eee56f4568892d1c0cb5f992c33cd7b (patch) | |
tree | 674f12deb7488583cf2cc5255b62e03c58070c34 /lib/tftp.c | |
parent | ba93ab2a2aeb930c92d45635b5713bc7499da270 (diff) | |
download | curl-bagder/more-data-conn.tar.gz |
lib: more conn->data cleanupsbagder/more-data-conn
Diffstat (limited to 'lib/tftp.c')
-rw-r--r-- | lib/tftp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tftp.c b/lib/tftp.c index c6af20e59..0eee4ef88 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -1093,7 +1093,7 @@ static CURLcode tftp_done(struct Curl_easy *data, CURLcode status, (void)status; /* unused */ (void)premature; /* not used */ - if(Curl_pgrsDone(conn)) + if(Curl_pgrsDone(data)) return CURLE_ABORTED_BY_CALLBACK; /* If we have encountered an error */ @@ -1201,7 +1201,7 @@ static CURLcode tftp_receive_packet(struct Curl_easy *data) } /* Update the progress meter */ - if(Curl_pgrsUpdate(conn)) { + if(Curl_pgrsUpdate(data)) { tftp_state_machine(state, TFTP_EVENT_ERROR); return CURLE_ABORTED_BY_CALLBACK; } @@ -1323,7 +1323,7 @@ static CURLcode tftp_doing(struct Curl_easy *data, bool *dophase_done) /* The multi code doesn't have this logic for the DOING state so we provide it for TFTP since it may do the entire transfer in this state. */ - if(Curl_pgrsUpdate(data->conn)) + if(Curl_pgrsUpdate(data)) result = CURLE_ABORTED_BY_CALLBACK; else result = Curl_speedcheck(data, Curl_now()); |