From 89c80f598114bb17cfad54e87808d57a6503da23 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 23 Jul 2017 19:59:28 +0200 Subject: [PATCH] DELUDE: fix PVSStudio reports V560 A part of conditional expression is always true: !oth->rst. --- extensions/xt_DELUDE.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/xt_DELUDE.c b/extensions/xt_DELUDE.c index 80865ed..917ab21 100644 --- a/extensions/xt_DELUDE.c +++ b/extensions/xt_DELUDE.c @@ -79,7 +79,7 @@ static void delude_send_reset(struct net *net, struct sk_buff *oldskb, tcph->doff = sizeof(struct tcphdr) / 4; /* DELUDE essential part */ - if (oth->syn && !oth->ack && !oth->rst && !oth->fin) { + if (oth->syn && !oth->ack && !oth->fin) { tcph->syn = true; tcph->seq = 0; tcph->ack = true;