From 8a603f0b25ed41e8d93e52bd8e85de8ffc75c5f8 Mon Sep 17 00:00:00 2001 From: "[anp/hsw]" Date: Sat, 17 Aug 2024 21:20:58 +0700 Subject: [PATCH] revert initialization for timestamps, ttl_orig, ttl_fake, flags_orig, scale_factor --- nfq/desync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nfq/desync.c b/nfq/desync.c index 674ec3c..a72f86e 100644 --- a/nfq/desync.c +++ b/nfq/desync.c @@ -486,8 +486,8 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint size_t pkt1_len = sizeof(pkt1), pkt2_len; memset (pkt1, 0, pkt1_len); - uint8_t ttl_orig,ttl_fake = 0, flags_orig = 0,scale_factor = 0; - uint32_t *timestamps = NULL; + uint8_t ttl_orig,ttl_fake,flags_orig,scale_factor; + uint32_t *timestamps; ttl_orig = ip ? ip->ip_ttl : ip6hdr->ip6_ctlun.ip6_un1.ip6_un1_hlim; uint32_t desync_fwmark = fwmark | params.desync_fwmark;