diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2008-09-24 01:08:01 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2008-09-24 01:08:01 +0000 |
commit | 515893595dafd99d83c1603533524076742aaa51 (patch) | |
tree | 5594155869ca0d182fef07d5ab8ef39da3dc2cc3 /lib | |
parent | 3800be3898f8b37d139ac997fbe79125a1727e5a (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |