From 3e1e155b351e73f7369c895eec9e96365b4a0713 Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Sat, 28 Jan 2017 02:28:31 +1300 Subject: [PATCH] Complain about malformed 64bit header values, not the valid ones. Added this regression in r14819, apparently confused by my own unfortunate "bad is true" httpHeaderNoteParsedEntry(error) API. --- src/HttpHeader.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HttpHeader.cc b/src/HttpHeader.cc index 2acc70228f..1733ab6490 100644 --- a/src/HttpHeader.cc +++ b/src/HttpHeader.cc @@ -1467,7 +1467,7 @@ HttpHeaderEntry::getInt64() const { int64_t val = -1; const bool ok = httpHeaderParseOffset(value.termedBuf(), &val); - httpHeaderNoteParsedEntry(id, value, ok); + httpHeaderNoteParsedEntry(id, value, !ok); return val; // remains -1 if !ok (XXX: bad method API) } -- 2.47.3