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>
This commit is contained in:
Dario Lombardo 2017-07-21 00:16:35 +02:00 committed by Guy Harris
parent 14d94e174a
commit 68f295d605
1 changed files with 1 additions and 0 deletions

View File

@ -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