From ff78f87ecc83e472f8c649eb0b8503a483e393ff Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 6 Jun 2013 02:21:46 +0200 Subject: [PATCH] (Hopefully) fix an assert failure in httpinput.cpp. If we get the Metacube sync marker but not the right of the header, we can set has_metacube_header, and then return. If the connection drops right there, the flag won't be correctly reset, and if the next connection starts with something that's not a Metacube block, we will try to read junk data as Metacube. Thankfully, the assert caught this case. --- httpinput.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/httpinput.cpp b/httpinput.cpp index 19167f0..275df50 100644 --- a/httpinput.cpp +++ b/httpinput.cpp @@ -264,6 +264,7 @@ void HTTPInput::do_work() request_bytes_sent = 0; response.clear(); pending_data.clear(); + has_metacube_header = false; for (size_t i = 0; i < stream_indices.size(); ++i) { servers->set_header(stream_indices[i], "", ""); } -- 2.39.2