aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2017-07-21 00:16:35 +0200
committerGuy Harris <guy@alum.mit.edu>2017-07-23 19:41:33 +0000
commit68f295d6052d49200f9ad3e06909b1157e7a82be (patch)
tree7038ff244adb7f62c25a8cee1347d92f25bb6ba9
parent14d94e174a230e66d7d75c774435d77f3d8aa22e (diff)
tshark: assert edt before calling print_packet (CID 1405107).
Change-Id: Iacde5514dc355cbb06fe45f5e342ddd45700999d Reviewed-on: https://code.wireshark.org/review/22749 Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r--tshark.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index 982c92bceb..5c44d64e27 100644
--- 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