curl-library
Bug in curl_easy_reset().
Date: Fri, 4 Apr 2008 15:32:45 +0300
Hi,
Variable data->set.maxredirs is not initialized properly in
curl_easy_reset().
So if we were redirected and then reuse the same connection request is
failed.
Below changes I added to fix the problem.
===================================================================
--- easy.c (revision 1640)
+++ easy.c (revision 1641)
@@ -715,8 +715,8 @@
data->set.fread_func = (curl_read_callback)fread;
data->set.infilesize = -1; /* we don't know any size */
- data->set.postfieldsize = -1;
-
+ data->set.postfieldsize = -1;
+ data->set.maxredirs = -1; /* allow any amount by default */
data->state.current_speed = -1; /* init to negative == impossible */
data->set.httpreq = HTTPREQ_GET; /* Default HTTP request */
Best regards,
Alexey Simak
Received on 2008-04-04