]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: src/listener.c: remove redundant NULL check
authorIlya Shipitsin <chipitsine@gmail.com>
Wed, 26 Apr 2023 19:05:12 +0000 (21:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 May 2023 03:30:03 +0000 (05:30 +0200)
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"

src/listener.c

index d5390ed8598bd559723a036330c9d8156ef36c53..3da01df2168924820d5a73a22704a519155784af 100644 (file)
@@ -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));
                        }