mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-28 14:21:00 +01:00
CLEANUP: src/listener.c: remove redundant NULL check
fixes #2031 quoting Willy Tarreau: "Originally the listeners were intended to work without a bind_conf (e.g. for FTP processing) hence these tests, but over time the bind_conf has become omnipresent"
This commit is contained in:
parent
2fab37eaf3
commit
83f54b9aef
@ -160,7 +160,7 @@ struct task *accept_queue_process(struct task *t, void *context, unsigned int st
|
||||
if (!(li->bind_conf->options & BC_O_UNLIMITED)) {
|
||||
HA_ATOMIC_UPDATE_MAX(&global.sps_max,
|
||||
update_freq_ctr(&global.sess_per_sec, 1));
|
||||
if (li->bind_conf && li->bind_conf->options & BC_O_USE_SSL) {
|
||||
if (li->bind_conf->options & BC_O_USE_SSL) {
|
||||
HA_ATOMIC_UPDATE_MAX(&global.ssl_max,
|
||||
update_freq_ctr(&global.ssl_per_sec, 1));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user