diff options
author | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-09-22 15:22:53 +0000 |
---|---|---|
committer | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-09-22 15:22:53 +0000 |
commit | e44cb94bebd7905d00a671f8961ba2aaafe71241 (patch) | |
tree | 68ddc6ae3fe67a300700a5a4d35037c748eddd5f | |
parent | a9a1866acffbdb57f364f7bc814496a507b9bf77 (diff) |
Always initialise fdata even when we don't dissect (we access some of fdatas variables)
svn path=/trunk/; revision=30070
-rw-r--r-- | tshark.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |