summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-06-25 12:32:11 +0200
committerJulian Andres Klode <jak@debian.org>2016-08-31 13:14:02 +0200
commit0216269ff9090e773ae2a0616e5aaecf0a13af8b (patch)
tree5ed5be781175e2dc58d59a796176129cb66ed21a /methods
parentd06d38bcc3335ee6bb448add9b91952e640dae05 (diff)
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. (cherry picked from commit cc0a4c82b3c132abba9b9ec35fd61bc8b45a1b80)
Diffstat (limited to 'methods')
-rw-r--r--methods/server.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/methods/server.cc b/methods/server.cc
index a46b40936..63c7486dd 100644
--- a/methods/server.cc
+++ b/methods/server.cc
@@ -527,6 +527,7 @@ int ServerMethod::Loop()
{
_error->Error(_("Bad header data"));
Fail(true);
+ Server->Close();
RotateDNS();
continue;
}