tcp: Fix botched timeout comparison
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
98dfe1cdf4
commit
52054d8b37
1 changed files with 2 additions and 2 deletions
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
|
||||||
|
|
Loading…
Reference in a new issue