DELUDE: fix PVSStudio reports

V560 A part of conditional expression is always true: !oth->rst.
This commit is contained in:
Jan Engelhardt
2017-07-23 19:59:28 +02:00
parent 8579fd2b3b
commit 89c80f5981

View File

@@ -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;