proto.c: Add hint to an assert.

Change-Id: I0204cb38f66363a5d8634d69abe7a2d7d7ebe631
Reviewed-on: https://code.wireshark.org/review/30257
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
AndersBroman 2018-10-19 09:54:57 +02:00 committed by Anders Broman
parent 8079d64b02
commit a4662f86bb
1 changed files with 1 additions and 1 deletions

View File

@ -6386,7 +6386,7 @@ finfo_set_len(field_info *fi, const gint length)
{
gint length_remaining;
DISSECTOR_ASSERT(length >= 0);
DISSECTOR_ASSERT_HINT(length >= 0, fi->hfinfo->abbrev);
length_remaining = tvb_captured_length_remaining(fi->ds_tvb, fi->start);
if (length > length_remaining)
fi->length = length_remaining;