diff options
author | Anders Broman <anders.broman@ericsson.com> | 2006-05-11 20:32:43 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2006-05-11 20:32:43 +0000 |
commit | 7c4b8c8b888949808448c97405ef4e5679a069b1 (patch) | |
tree | db1b1b608ff3f05d1edb7e8ac791318e182de69f | |
parent | 6c381119a94f8ba487b6fd67736a17ce1cd01612 (diff) |
Fix Bug 938 ISUP IAM message marked as Malformed packet - Location number without address digits
wrongly decoded.
svn path=/trunk/; revision=18138
-rw-r--r-- | epan/dissectors/packet-isup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-isup.c b/epan/dissectors/packet-isup.c index eb79663435..04d46b9589 100644 --- a/epan/dissectors/packet-isup.c +++ b/epan/dissectors/packet-isup.c @@ -4467,8 +4467,9 @@ dissect_isup_location_number_parameter(tvbuff_t *parameter_tvb, proto_tree *para /* NOTE When the address presentation restricted indicator indicates address not available, the * subfields in items a), b), c) and d) are coded with 0's, and the screening indicator is set to 11 * (network provided). + * BUG 938 - Just check if there is someting more to dissect. */ - if ( indicators2 == 0x0b ){ + if (tvb_length_remaining(parameter_tvb, offset) < 3){ proto_tree_add_text(parameter_tree, parameter_tvb, 1, -1, "Location number: address not available"); proto_item_set_text(parameter_item, "Location number: address not available"); return; |