tshark: assert edt before calling print_packet (CID 1405107).
authorDario Lombardo <lomato@gmail.com>
Thu, 20 Jul 2017 22:16:35 +0000 (00:16 +0200)
committerGuy Harris <guy@alum.mit.edu>
Sun, 23 Jul 2017 19:41:33 +0000 (19:41 +0000)
Change-Id: Iacde5514dc355cbb06fe45f5e342ddd45700999d
Reviewed-on: https://code.wireshark.org/review/22749
Reviewed-by: Guy Harris <guy@alum.mit.edu>
tshark.c

index 982c92bcebbc383bab35afccad735fceac9e29d5..5c44d64e27ae6fc540ea4d6a8126b738f6d9da5e 100644 (file)
--- a/tshark.c
+++ b/tshark.c
@@ -3521,6 +3521,7 @@ process_packet_single_pass(capture_file *cf, epan_dissect_t *edt, gint64 offset,
     if (print_packet_info) {
       /* We're printing packet information; print the information for
          this packet. */
+      g_assert(edt);
       print_packet(cf, edt);
 
       /* If we're doing "line-buffering", flush the standard output