diff options
author | Ilya Shipitsin <chipitsine@gmail.com> | 2023-04-26 21:05:12 +0200 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2023-05-11 05:30:03 +0200 |
commit | 83f54b9aef560797e928e71669b3036ade283970 (patch) | |
tree | 21085208a47fa4c447419ed3ccb7eb5bf299b3bf | |
parent | 2fab37eaf3512f9d275338b81807edf53499cbd8 (diff) | |
download | haproxy-83f54b9aef560797e928e71669b3036ade283970.tar.gz |
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"
-rw-r--r-- | src/listener.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/listener.c b/src/listener.c index d5390ed85..3da01df21 100644 --- a/src/listener.c +++ b/src/listener.c @@ -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)); } |