diff --git a/epan/tvbuff.c b/epan/tvbuff.c index 9d3ca4b..b263ba1 100644 --- a/epan/tvbuff.c +++ b/epan/tvbuff.c @@ -2089,8 +2089,8 @@ tvb_find_guint8(tvbuff_t *tvb, const gint offset, const gint maxlength, const gu } } - if (tvb->ops->tvb_find_guint8) - return tvb->ops->tvb_find_guint8(tvb, abs_offset, limit, needle); + if (tvb->ops->tvb_find_guint8 && tvb->ops->tvb_offset) + return tvb->ops->tvb_find_guint8(tvb, abs_offset, limit, needle) - tvb->ops->tvb_offset(tvb, 0); return tvb_find_guint8_generic(tvb, offset, limit, needle); }