tcp: When a connection flag it set, don't negate it for debug print

Fix a copy and paste typo I added in commit 5474bc5485 ("tcp,
tcp_splice: Get rid of false positive CWE-394 Coverity warning from
fls()") and --debug altogether.

Fixes: 5474bc5485 ("tcp, tcp_splice: Get rid of false positive CWE-394 Coverity warning from fls()")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2023-03-21 19:39:55 +01:00
parent 89d1494974
commit 9ffccf7acc

2
tcp.c
View file

@ -758,7 +758,7 @@ static void conn_flag_do(const struct ctx *c, struct tcp_tap_conn *conn,
tcp_flag_str[flag_index]); tcp_flag_str[flag_index]);
} }
} else { } else {
int flag_index = fls(~flag); int flag_index = fls(flag);
if (conn->flags & flag) { if (conn->flags & flag) {
/* Special case: setting ACK_FROM_TAP_DUE on a /* Special case: setting ACK_FROM_TAP_DUE on a