From 515893595dafd99d83c1603533524076742aaa51 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Wed, 24 Sep 2008 01:08:01 +0000 Subject: 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. --- lib/url.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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); -- cgit v1.2.3