From: Yegor Yefremov Date: Sun, 23 Nov 2014 13:21:43 +0100 Message-Id: <1416745303-23641-1-git-send-email-yegorslists@...1030...> Subject: [Openvpn-devel] [PATCH] polarssl: fix unreachable code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: openvpn-devel@lists.sourceforge.net Found via cppcheck and compile-tested. Signed-off-by: Yegor Yefremov --- src/openvpn/ssl_polarssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openvpn/ssl_polarssl.c b/src/openvpn/ssl_polarssl.c index b026a17..2036885 100644 --- a/src/openvpn/ssl_polarssl.c +++ b/src/openvpn/ssl_polarssl.c @@ -846,8 +846,8 @@ key_state_write_plaintext (struct key_state_ssl *ks, struct buffer *buf) if (0 == buf->len) { - return 0; perf_pop (); + return 0; } retval = ssl_write(ks->ctx, BPTR(buf), buf->len); -- 1.8.3.2