diff options
author | Guy Harris <guy@alum.mit.edu> | 2006-11-07 21:27:52 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2006-11-07 21:27:52 +0000 |
commit | b6986a0b810948fac4a0e045cbb8f49a0db8b58f (patch) | |
tree | a3c840cf7519fe59dc6146cfdfaf6c4975dfdd8d /epan/dissectors/packet-aim-sst.c | |
parent | 0fe89db10220932a928c986a1ca51dfda95c2280 (diff) |
The tvb_ensure_length_remaining() calls aren't needed - we want an
exception to be thrown if all the data for the icon isn't there, so the
packet gets marked as incomplete.
svn path=/trunk/; revision=19865
Diffstat (limited to 'epan/dissectors/packet-aim-sst.c')
-rw-r--r-- | epan/dissectors/packet-aim-sst.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-aim-sst.c b/epan/dissectors/packet-aim-sst.c index a65bbb8496..6ce88cbb8c 100644 --- a/epan/dissectors/packet-aim-sst.c +++ b/epan/dissectors/packet-aim-sst.c @@ -93,7 +93,7 @@ static int dissect_aim_sst_buddy_down_repl (tvbuff_t *tvb, packet_info *pinfo _U icon_size = tvb_get_ntohs(tvb, offset); offset+=2; - if (icon_size && (tvb_ensure_length_remaining(tvb, offset) >= icon_size)) + if (icon_size) { proto_tree_add_item(tree, hf_aim_sst_icon, tvb, offset, icon_size, FALSE); } @@ -133,7 +133,7 @@ static int dissect_aim_sst_buddy_up_req (tvbuff_t *tvb, packet_info *pinfo _U_, icon_size = tvb_get_ntohs(tvb, offset); offset+=2; - if (icon_size && (tvb_ensure_length_remaining(tvb, offset) >= icon_size)) + if (icon_size) { proto_tree_add_item(tree, hf_aim_sst_icon, tvb, offset, icon_size, FALSE); } |