aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-aim.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-11-15 21:22:01 +0000
committerBill Meier <wmeier@newsguy.com>2011-11-15 21:22:01 +0000
commit2103e7f38a2542abec6464362abfeed2f4319961 (patch)
treec20416a4c04507b9ea39334e8d5aa697fcd28d58 /epan/dissectors/packet-aim.c
parent3b387d1b8ea69abe10f8031bd55c9cd974a13237 (diff)
tvb_[reported_]length_remaining can return -1
svn path=/trunk/; revision=39870
Diffstat (limited to 'epan/dissectors/packet-aim.c')
-rw-r--r--epan/dissectors/packet-aim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-aim.c b/epan/dissectors/packet-aim.c
index adf165ecb6..013bbac742 100644
--- a/epan/dissectors/packet-aim.c
+++ b/epan/dissectors/packet-aim.c
@@ -772,7 +772,7 @@ dissect_aim_snac(tvbuff_t *tvb, packet_info *pinfo, int offset,
proto_item_append_text(ti, ", %s", subtype->name);
}
- if(tvb_length_remaining(tvb, offset) > 0 && subtype != NULL && subtype->dissector)
+ if((tvb_length_remaining(tvb, offset) > 0) && (subtype != NULL) && subtype->dissector)
{
subtype->dissector(subtvb, pinfo, family_tree);
}