aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2013-02-10 18:38:46 +0000
committerBill Meier <wmeier@newsguy.com>2013-02-10 18:38:46 +0000
commit3f70cb4406fe00c577db66fdb97d4e932f3f5d2b (patch)
tree5d3d81bc0ce950f229cc54119af17a80c5e21999 /epan
parentffa42bbdd8f403924c808794cd3782c243f43f76 (diff)
Add an "Unregistered hf!" hint to DISSECTOR_ASSERT((guint)hfindex < gpa_hfinfo.len).
svn path=/trunk/; revision=47611
Diffstat (limited to 'epan')
-rw-r--r--epan/proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/proto.c b/epan/proto.c
index 26306553b3..8643a3cda4 100644
--- a/epan/proto.c
+++ b/epan/proto.c
@@ -295,7 +295,7 @@ static struct ws_memory_slab item_label_slab =
#define PROTO_REGISTRAR_GET_NTH(hfindex, hfinfo) \
if((guint)hfindex >= gpa_hfinfo.len && getenv("WIRESHARK_ABORT_ON_DISSECTOR_BUG")) \
g_error("Unregistered hf! index=%d", hfindex); \
- DISSECTOR_ASSERT((guint)hfindex < gpa_hfinfo.len); \
+ DISSECTOR_ASSERT_HINT((guint)hfindex < gpa_hfinfo.len, "Unregistered hf!"); \
hfinfo = gpa_hfinfo.hfi[hfindex];
/* List which stores protocols and fields that have been registered */