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:
Roland Knall 2018-06-26 14:55:27 -07:00
parent fe94133f0d
commit d3b4f1980e
1 changed files with 1 additions and 1 deletions

View File

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