tcp: Fix botched timeout comparison
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
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_act = timespec_diff_ms(ts, &conn->ts_tap_act);
|
||||||
int tap_data_noack;
|
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)))
|
sizeof(struct timespec)))
|
||||||
tap_data_noack = 0;
|
tap_data_noack = 0;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user