aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-09-24 01:08:01 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-09-24 01:08:01 +0000
commit515893595dafd99d83c1603533524076742aaa51 (patch)
tree5594155869ca0d182fef07d5ab8ef39da3dc2cc3 /lib
parent3800be3898f8b37d139ac997fbe79125a1727e5a (diff)
Make sure not to dereference the wrong UrlState proto union member when
switching from one protocol to another in a single request (e.g. redirecting from HTTP to FTP as in test 1055) by resetting state.expect100header before every request.
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 7cfe7cc0a..352ec20c7 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -4682,6 +4682,7 @@ static CURLcode do_init(struct connectdata *conn)
conn->bits.done = FALSE; /* Curl_done() is not called yet */
conn->bits.do_more = FALSE; /* by default there's no curl_do_more() to use */
+ data->state.expect100header = FALSE;
/* NB: the content encoding software depends on this initialization */
Curl_easy_initHandleData(data);