commit | 4d3c60ad8d25f572b5ebf0bd0f926def35e1c7b5 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Jul 17 15:23:20 2019 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Jul 19 13:50:09 2019 +0200 |
tree | ee06b7ba7ac4285e5dd7f706cdd635cc86aa9b15 | |
parent | 026efc71c8f766667e3803cad357ad7cf051c942 [diff] |
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.