Skip to content

Commit

Permalink
Curl_pretransfer: reset expected transfer sizes
Browse files Browse the repository at this point in the history
Reported-by: Mohammad AlSaleh
Bug: http://curl.haxx.se/mail/lib-2015-01/0065.html
  • Loading branch information
bagder committed Jan 14, 2015
1 parent e983480 commit cc28bc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/transfer.c
Expand Up @@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
Expand Down Expand Up @@ -1342,6 +1342,7 @@ CURLcode Curl_pretransfer(struct SessionHandle *data)
#endif

Curl_initinfo(data); /* reset session-specific information "variables" */
Curl_pgrsResetTimesSizes(data);
Curl_pgrsStartNow(data);

if(data->set.timeout)
Expand Down

0 comments on commit cc28bc4

Please sign in to comment.