aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2019-04-19 21:27:01 +0200
committerAnders Broman <a.broman58@gmail.com>2019-04-20 06:59:27 +0000
commitc642c1a0a40224c7bb0b45b737623ff9a6115d85 (patch)
tree08fd009bd933a2624e6603c380dd93cbf26be8e2
parentcf5b86721ae904601d1a501b126ab5f782f6d167 (diff)
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 <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--ui/text_import.c1
1 files changed, 0 insertions, 1 deletions
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;