From c642c1a0a40224c7bb0b45b737623ff9a6115d85 Mon Sep 17 00:00:00 2001 From: Jaap Keuter Date: Fri, 19 Apr 2019 21:27:01 +0200 Subject: text import: make TCP dest port truly direction dependant During introduction of proper direction support this line was left over, causing TCP dest port to remain independant of direction. This change simply drops the line. See CID 1444115 Change-Id: I4ff362925e422bc57cfa3842127ddaf8695cf303 Reviewed-on: https://code.wireshark.org/review/32902 Petri-Dish: Anders Broman Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- ui/text_import.c | 1 - 1 file changed, 1 deletion(-) (limited to 'ui/text_import.c') diff --git a/ui/text_import.c b/ui/text_import.c index 4d32fb0532..d3eca3b668 100644 --- a/ui/text_import.c +++ b/ui/text_import.c @@ -493,7 +493,6 @@ write_current_packet (void) HDR_TCP.source_port = isOutbound ? g_htons(hdr_dest_port): g_htons(hdr_src_port); HDR_TCP.dest_port = isOutbound ? g_htons(hdr_src_port) : g_htons(hdr_dest_port); - HDR_TCP.dest_port = g_htons(hdr_dest_port); /* set ack number if we have direction */ if (has_direction) { HDR_TCP.flags = 0x10; -- cgit v1.2.3