From 936763ade224c377837516230dd2e3b520a8efaa Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 2 Dec 2019 19:01:01 +0100 Subject: removed superfluous if statement Signed-off-by: Toni Uhlig --- src/pkt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pkt.c b/src/pkt.c index 3b58b8a..339eb51 100644 --- a/src/pkt.c +++ b/src/pkt.c @@ -385,8 +385,9 @@ void handle_data(icmp_echo_packet_t *pkt, int total_len, proxy_desc_t *cur, int cur->recv_wait_send++; cur->recv_idx++; } - else if (cur->recv_ring[cur->recv_idx]) + else { pt_log(kLog_debug, "Dup packet?\n"); + } cur->next_remote_seq++; if (cur->recv_idx >= cur->window_size) -- cgit v1.2.3