summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-04-16 19:32:33 -0700
committerGuy Harris <guy@alum.mit.edu>2017-04-17 02:33:07 +0000
commitacf349ea486799be4c28bc98fb674c145fbb66c6 (patch)
treed8a32afa1fa0aacb01d88fdc59f1de1eef8fdd7a /file.c
parent190350d73236c5f2ab2885f63b61a43e8890f02c (diff)
downloadwireshark-acf349ea486799be4c28bc98fb674c145fbb66c6.tar.gz
Fix backwards test.
If fdata->flags.visited *isn't* set, this is the first pass over the packets since opening a file or starting a redissection. Change-Id: Ib72d122c9291ce5ac9c3a3df1b6dfb4db163698e Reviewed-on: https://code.wireshark.org/review/21155 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index eccc093593..0434717fde 100644
--- a/file.c
+++ b/file.c
@@ -1166,7 +1166,7 @@ add_packet_to_packet_list(frame_data *fdata, capture_file *cf,
}
#endif
- if (fdata->flags.visited) {
+ if (!fdata->flags.visited) {
/* This is the first pass, so prime the epan_dissect_t with the
hfids postdissectors want on the first pass. */
prime_epan_dissect_with_postdissector_wanted_hfids(edt);