tcp: When a connection flag it set, don't negate it for debug print
Fix a copy and paste typo I added in commit5474bc5485
("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:
parent
89d1494974
commit
9ffccf7acc
1 changed files with 1 additions and 1 deletions
2
tcp.c
2
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
|
||||
|
|
Loading…
Reference in a new issue