diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2023-03-21 19:39:55 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-03-21 19:39:55 +0100 |
commit | 9ffccf7acc98c1b22b9b5e0b22c55fca7760a7df (patch) | |
tree | 5ed9012861bcfc6a037c8790d3ea9509ed34b15f /tcp.c | |
parent | 89d1494974d5677ace7ed4973cc2aa9b2f94ec92 (diff) | |
download | passt-9ffccf7acc98c1b22b9b5e0b22c55fca7760a7df.tar passt-9ffccf7acc98c1b22b9b5e0b22c55fca7760a7df.tar.gz passt-9ffccf7acc98c1b22b9b5e0b22c55fca7760a7df.tar.bz2 passt-9ffccf7acc98c1b22b9b5e0b22c55fca7760a7df.tar.lz passt-9ffccf7acc98c1b22b9b5e0b22c55fca7760a7df.tar.xz passt-9ffccf7acc98c1b22b9b5e0b22c55fca7760a7df.tar.zst passt-9ffccf7acc98c1b22b9b5e0b22c55fca7760a7df.zip |
tcp: When a connection flag it set, don't negate it for debug print
Fix a copy and paste typo I added in commit 5474bc5485d8 ("tcp,
tcp_splice: Get rid of false positive CWE-394 Coverity warning from
fls()") and --debug altogether.
Fixes: 5474bc5485d8 ("tcp, tcp_splice: Get rid of false positive CWE-394 Coverity warning from fls()")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp.c')
-rw-r--r-- | tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -758,7 +758,7 @@ static void conn_flag_do(const struct ctx *c, struct tcp_tap_conn *conn, tcp_flag_str[flag_index]); } } else { - int flag_index = fls(~flag); + int flag_index = fls(flag); if (conn->flags & flag) { /* Special case: setting ACK_FROM_TAP_DUE on a |