epan: Fix session null-pointer check
Fix rare null-pointer when switching profiles Change-Id: I2a57ef22b4567f936f3a87e133db6132864a83ac Reviewed-on: https://code.wireshark.org/review/28468 Reviewed-by: Roland Knall <rknall@gmail.com>
This commit is contained in:
parent
fe94133f0d
commit
d3b4f1980e
|
@ -406,7 +406,7 @@ epan_get_frame_ts(const epan_t *session, guint32 frame_num)
|
|||
{
|
||||
const nstime_t *abs_ts = NULL;
|
||||
|
||||
if (session->funcs.get_frame_ts)
|
||||
if (session && session->funcs.get_frame_ts)
|
||||
abs_ts = session->funcs.get_frame_ts(session->prov, frame_num);
|
||||
|
||||
if (!abs_ts)
|
||||
|
|
Loading…
Reference in New Issue