diff options
author | AndersBroman <anders.broman@ericsson.com> | 2018-10-19 09:54:57 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-10-19 08:26:18 +0000 |
commit | a4662f86bbf4b85aeccf114910c0549a21f77e2e (patch) | |
tree | 591c0014cc68fa325e28862e120d3d820d032806 /epan/proto.c | |
parent | 8079d64b029a93ae83b797df1274c9d54e33b713 (diff) |
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>
Diffstat (limited to 'epan/proto.c')
-rw-r--r-- | epan/proto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/proto.c b/epan/proto.c index 06769ab58f..c788280b91 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -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; |