aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ptp.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2015-06-25 13:06:53 -0700
committerMartin Kaiser <wireshark@kaiser.cx>2015-06-26 17:00:11 +0000
commit304f9021f4356b8957a902ab7d8abf86517beb2f (patch)
tree6e962cf6dff93893d6f92c789b85130c9d126ccd /epan/dissectors/packet-ptp.c
parent29aecdf03203b2bd44f430a743704289a7080896 (diff)
PTP: just return, don't throw an exception
Change-Id: Icaca74f7d5038b4e2e232fb499933219b322e02d Reviewed-on: https://code.wireshark.org/review/9159 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Diffstat (limited to 'epan/dissectors/packet-ptp.c')
-rw-r--r--epan/dissectors/packet-ptp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ptp.c b/epan/dissectors/packet-ptp.c
index a6a4f8fdb6..d688dc017f 100644
--- a/epan/dissectors/packet-ptp.c
+++ b/epan/dissectors/packet-ptp.c
@@ -2459,7 +2459,7 @@ dissect_ptp_v2(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean ptp
} else if (msg_len < PTP_V2_MESSAGE_LENGTH_OFFSET + 2) {
/* Bogus message length - not long enough to include the message length field */
expert_add_info(pinfo, msg_len_item, &ei_ptp_v2_msg_len_too_small);
- THROW(ReportedBoundsError);
+ return;
} else {
/*
* Set the length of this tvbuff to the message length, chopping