aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/proto.c')
-rw-r--r--epan/proto.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/proto.c b/epan/proto.c
index 9aae991f9b..eac1e1ea86 100644
--- a/epan/proto.c
+++ b/epan/proto.c
@@ -2093,8 +2093,9 @@ alloc_field_info(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
}
} else {
if (*length < 0) {
- REPORT_DISSECTOR_BUG(g_strdup_printf("\"%s\" - \"%s\" invalid length: %d",
- hfinfo->name, hfinfo->abbrev, *length));
+ REPORT_DISSECTOR_BUG(g_strdup_printf("\"%s\" - \"%s\" invalid length: %d (%s:%u)",
+ hfinfo->name, hfinfo->abbrev, *length,
+ __FILE__, __LINE__));
}
}