]> git.kaiwu.me - haproxy.git/commit
MINOR: session: use conn->src instead of conn->addr.from
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Jul 2019 13:23:20 +0000 (15:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 19 Jul 2019 11:50:09 +0000 (13:50 +0200)
commit4d3c60ad8d25f572b5ebf0bd0f926def35e1c7b5
treeee06b7ba7ac4285e5dd7f706cdd635cc86aa9b15
parent026efc71c8f766667e3803cad357ad7cf051c942
MINOR: session: use conn->src instead of conn->addr.from

In session_accept_fd() we'll soon have to dynamically allocate the
address, or better, steal it from the caller and define a strict calling
convention regarding who's responsible for the freeing. In the simpler
session_prepare_log_prefix(), just add an attempt to retrieve the address
if not yet set and do not dereference it on failure.
src/session.c