]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: lua: properly set the target on the connection
authorWilly Tarreau <w@1wt.eu>
Sat, 26 Sep 2015 15:51:09 +0000 (17:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 26 Sep 2015 15:56:23 +0000 (17:56 +0200)
commit3adac088492a7e4c837a2bd2e35bf0e15b1e4027
treefb328f0d5dd471325b071c2fd0650eda8db6103d
parent9af89f79057084bf8e7f4900333fda187475ca4a
BUG/MEDIUM: lua: properly set the target on the connection

Not having the target set on the connection causes it to be released
at the last moment, and the destination address to randomly be valid
depending on the data found in the memory at this moment. In practice
it works as long as memory poisonning is disabled. The deep reason is
that connect_server() doesn't expect to be called with SF_ADDR_SET and
an existing connection with !reuse. This causes the release of the
connection, its reallocation (!reuse), and taking the address from the
newly allocated connection. This should certainly be improved.
src/hlua.c