From 06c54466c86ee3beff9b6cd75f40de5e431d8235 Mon Sep 17 00:00:00 2001 From: Steffan Karger Date: Mon, 28 Nov 2016 15:53:20 +0100 Subject: [PATCH] tls_process: don't set variable that's never read Found by the clang static analyzer: the state_change variable is set, but never read afterwards. This code has been like this since 2005, makes sense without setting state_change to true, and has worked fine for the past 11 years. Signed-off-by: Steffan Karger Acked-by: Gert Doering Message-Id: <1480344801-27855-1-git-send-email-steffan.karger@fox-it.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13260.html Signed-off-by: Gert Doering --- src/openvpn/ssl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/openvpn/ssl.c b/src/openvpn/ssl.c index 7347a7871..d9de38000 100644 --- a/src/openvpn/ssl.c +++ b/src/openvpn/ssl.c @@ -2809,7 +2809,6 @@ tls_process (struct tls_multi *multi, RELIABLE_ACK_SIZE, false); *to_link = buf; active = true; - state_change = true; dmsg (D_TLS_DEBUG, "Dedicated ACK -> TCP/UDP"); } #endif -- 2.47.2