aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-pktc.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-pktc.c')
-rw-r--r--epan/dissectors/packet-pktc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-pktc.c b/epan/dissectors/packet-pktc.c
index ba865e980b..2e43177f65 100644
--- a/epan/dissectors/packet-pktc.c
+++ b/epan/dissectors/packet-pktc.c
@@ -521,7 +521,8 @@ dissect_pktc_mtafqdn_krbsafeuserdata(packet_info *pinfo, tvbuff_t *tvb, proto_tr
case PKTC_MTAFQDN_REP:
/* MTA FQDN */
string_len = tvb_length_remaining(tvb, offset) - 4;
- DISSECTOR_ASSERT(string_len > 0);
+ if (string_len <= 0)
+ THROW(ReportedBoundsError);
proto_tree_add_item(tree, hf_pktc_mtafqdn_fqdn, tvb, offset, string_len, FALSE);
offset+=string_len;