diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-04-20 10:37:04 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-04-20 10:37:04 +0200 |
commit | 518763f630873e35398d2537ebfabf97b5aea489 (patch) | |
tree | d7b36ef50a9301ac8099edc48a0ab9e563125198 /methods/http.cc | |
parent | 8c6d0ba4e25baa7b0dffc4e06e76fc63a71e656f (diff) | |
parent | e6a12579e9e5d5735eda450cf2bb3986d828ab65 (diff) |
merged from lp:~donkult/apt/sid
Diffstat (limited to 'methods/http.cc')
-rw-r--r-- | methods/http.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc index c62ca71d3..b450b6ffc 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -602,7 +602,7 @@ bool ServerState::HeaderLine(string Line) return true; Size = strtoull(Val.c_str(), NULL, 10); - if (Size == ULLONG_MAX) + if (Size >= std::numeric_limits<unsigned long long>::max()) return _error->Errno("HeaderLine", _("The HTTP server sent an invalid Content-Length header")); return true; } |