aboutgitcodebugslistschat
path: root/tcp.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2023-03-21 19:39:55 +0100
committerStefano Brivio <sbrivio@redhat.com>2023-03-21 19:39:55 +0100
commit9ffccf7acc98c1b22b9b5e0b22c55fca7760a7df (patch)
tree5ed9012861bcfc6a037c8790d3ea9509ed34b15f /tcp.c
parent89d1494974d5677ace7ed4973cc2aa9b2f94ec92 (diff)
downloadpasst-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcp.c b/tcp.c
index c9c76d7..590b08a 100644
--- a/tcp.c
+++ b/tcp.c
@@ -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