]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] 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>
Mon, 28 Dec 2009 05:57:33 +0000 (06:57 +0100)
commit58cc872848314ef2ecbaf9808ce4bd5f5b20bb69
treec50093a78bb522735c1151e0e02084877ca655f6
parentd98cf93395fe5a982afc3eee66526057d49420da
[BUG] 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.
src/proto_http.c