]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] http: typos on several unlikely() around header insertion
authorWilly Tarreau <w@1wt.eu>
Mon, 28 Dec 2009 05:57:33 +0000 (06:57 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 Jan 2010 22:16:17 +0000 (23:16 +0100)
commit80b085003a90f23e4bdc5fe9b9ad88c047bc6e08
treeec98cb93b3628320e777566e528b9871157c8216
parent6179630e0fb64c4d35e06743cfc84f02dfdf1517
[MINOR] http: typos on several unlikely() around header insertion

In many places where we perform header insertion, an error control
is performed but due to a mistake, it cannot match any error :

   if (unlikely(error) < 0)
instead of
   if (unlikely(error < 0))

This prevents error 400 responses from being sent when the buffer is
full due to many header additions. This must be backported to 1.3.
(cherry picked from commit 58cc872848314ef2ecbaf9808ce4bd5f5b20bb69)
src/proto_http.c