MINOR: connection: use the srv pointer for the srv conn hash
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 22 Jan 2021 15:47:46 +0000 (16:47 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 12 Feb 2021 11:33:05 +0000 (12:33 +0100)
commit1a58aca84ed899da3b9b28445156ba1f5f1b9005
tree7630f16149f89ac578cd15874110e5126c268289
parent81c6f76d3ebefa95108eeb2fcf7aae042253810b
MINOR: connection: use the srv pointer for the srv conn hash

The pointer of the target server is used as a first parameter for the
server connection hash calcul. This prevents the hash to be null when no
specific parameters are present, and can serve as a simple defense
against an attacker trying to reuse a non-conform connection.
include/haproxy/connection-t.h
src/backend.c
src/connection.c