mirror of
https://passt.top/passt
synced 2024-12-22 13:45:32 +00:00
tcp: Fix botched timeout comparison
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
98dfe1cdf4
commit
52054d8b37
2
tcp.c
2
tcp.c
@ -3389,7 +3389,7 @@ static void tcp_timer_one(struct ctx *c, struct tcp_tap_conn *conn,
|
||||
int tap_act = timespec_diff_ms(ts, &conn->ts_tap_act);
|
||||
int tap_data_noack;
|
||||
|
||||
if (memcmp(&conn->tap_data_noack, &((struct timespec){ 0, 0 }),
|
||||
if (!memcmp(&conn->tap_data_noack, &((struct timespec){ 0, 0 }),
|
||||
sizeof(struct timespec)))
|
||||
tap_data_noack = 0;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user