aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorkrj <krj@f5534014-38df-0310-8fa8-9805f1628bb7>2009-09-22 15:22:53 +0000
committerkrj <krj@f5534014-38df-0310-8fa8-9805f1628bb7>2009-09-22 15:22:53 +0000
commit3094218958c1841daea383517b7a7399f39279fd (patch)
tree68ddc6ae3fe67a300700a5a4d35037c748eddd5f /tshark.c
parent4a98ae93c29ab7edecfb2b38f1f456c64d5ba3fe (diff)
Always initialise fdata even when we don't dissect (we access some of fdatas variables)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30070 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tshark.c b/tshark.c
index 9055f96001..83e7b41826 100644
--- a/tshark.c
+++ b/tshark.c
@@ -2348,12 +2348,12 @@ process_packet(capture_file *cf, gint64 offset, const struct wtap_pkthdr *whdr,
that all packets can be marked as 'passed'. */
passed = TRUE;
+ frame_data_init(&fdata, cf->count, whdr, offset, cum_bytes);
+
/* If we're going to print packet information, or we're going to
run a read filter, or we're going to process taps, set up to
do a dissection and do so. */
if (do_dissection) {
- frame_data_init(&fdata, cf->count, whdr, offset, cum_bytes);
-
if (print_packet_info && g_resolv_flags)
/* Grab any resolved addresses */
host_name_lookup_process(NULL);