From: David Kalnischkies Date: Sat, 25 Jun 2016 10:32:11 +0000 (+0200) Subject: close server if parsing of header field failed X-Git-Tag: 1.3_pre1~44 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/cc0a4c82b3c132abba9b9ec35fd61bc8b45a1b80 close server if parsing of header field failed Seen in #828011 if we fail to parse a header field like Last-Modified we end up interpreting the data as response header for coming requests in case we don't rotate to a new server in DNS rotation. --- diff --git a/methods/server.cc b/methods/server.cc index 9db45eb8c..5ab97a660 100644 --- a/methods/server.cc +++ b/methods/server.cc @@ -556,6 +556,7 @@ int ServerMethod::Loop() { _error->Error(_("Bad header data")); Fail(true); + Server->Close(); RotateDNS(); continue; }