aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2019-12-02 19:01:01 +0100
committerToni Uhlig <matzeton@googlemail.com>2019-12-02 19:01:01 +0100
commit936763ade224c377837516230dd2e3b520a8efaa (patch)
treebb2f32c555c833092d79541064493d454acb546f
parent8ccc25346b36e1ebb1da5870c4d6c08b45ab2ae1 (diff)
removed superfluous if statement
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r--src/pkt.c3
1 files changed, 2 insertions, 1 deletions
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)