aboutgitcodebugslistschat
path: root/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'tcp.c')
-rw-r--r--tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcp.c b/tcp.c
index 3d52106..cbfad28 100644
--- a/tcp.c
+++ b/tcp.c
@@ -3389,8 +3389,8 @@ 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 }),
- sizeof(struct timespec)))
+ if (!memcmp(&conn->tap_data_noack, &((struct timespec){ 0, 0 }),
+ sizeof(struct timespec)))
tap_data_noack = 0;
else
tap_data_noack = timespec_diff_ms(ts, &conn->tap_data_noack);