Always initialise fdata even when we don't dissect (we access some of fdatas variables)
authorkrj <krj@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 22 Sep 2009 15:22:53 +0000 (15:22 +0000)
committerkrj <krj@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 22 Sep 2009 15:22:53 +0000 (15:22 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30070 f5534014-38df-0310-8fa8-9805f1628bb7

tshark.c

index 9055f96001b42a156cc077424fc005547d1bef65..83e7b41826fe8991f2755b6679a6a98f56256407 100644 (file)
--- 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);