From ab9f279a1dee9ddad31bacd04a2f950ec2ed6ef3 Mon Sep 17 00:00:00 2001 From: JailBird Date: Wed, 9 Nov 2022 17:53:25 -0600 Subject: [PATCH] ssld: Remove unused zlib_ok variable --- ssld/ssld.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ssld/ssld.c b/ssld/ssld.c index cd4219e0..a4bb8a02 100644 --- a/ssld/ssld.c +++ b/ssld/ssld.c @@ -135,7 +135,6 @@ static void mod_cmd_write_queue(mod_ctl_t * ctl, const void *data, size_t len); static const char *remote_closed = "Remote host closed the connection"; static bool ssld_ssl_ok; static int certfp_method = RB_SSL_CERTFP_METH_CERT_SHA1; -static bool zlib_ok = false; static conn_t * @@ -1012,7 +1011,7 @@ main(int argc, char **argv) read_pipe_ctl(mod_ctl->F_pipe, NULL); mod_read_ctl(mod_ctl->F, mod_ctl); send_version(mod_ctl); - if(!zlib_ok && !ssld_ssl_ok) + if(!ssld_ssl_ok) { /* this is really useless... */ send_i_am_useless(mod_ctl); @@ -1021,8 +1020,7 @@ main(int argc, char **argv) exit(1); } - if(!zlib_ok) - send_nozlib_support(mod_ctl, NULL); + send_nozlib_support(mod_ctl, NULL); if(!ssld_ssl_ok) send_nossl_support(mod_ctl, NULL); rb_lib_loop(0);