]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: cookie prefix doesn't support cookie-less servers
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Jun 2012 14:07:00 +0000 (16:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Jun 2012 14:07:00 +0000 (16:07 +0200)
commita05903174f251907e8d129f0aa593f60c80d9737
tree8e317d4746ebe7bfce4905bcef8da67ab30c7295
parent02c7c14ae7b7a0fca10b7997c205a1bbd92cfd4b
BUG/MAJOR: cookie prefix doesn't support cookie-less servers

Commit 827aee91 merged in 1.5-dev5 introduced a regression causing
the srv pointer to be tested twice instead of srv then srv->cookie.
The result is that if a server has no cookie in prefix mode, haproxy
will crash when trying to modify it.

Such a config is very unlikely to happen, except maybe with a backup
server, which would cause haproxy to die with the last server in the
farm.

No backport is needed, only 1.5-dev was affected.
src/proto_http.c