aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2011-02-15 12:06:39 +0000
committerJörg Mayer <jmayer@loplof.de>2011-02-15 12:06:39 +0000
commit77047f4ea45fefb3172f8f35a1338be9f15ff4c4 (patch)
treec5f3c3556304ecb8321f050e35a660103224bf10 /epan
parent1be49d98a524f4fe92aec06e0c0acd4101310672 (diff)
Previously 1 byte TCP payload to port 2000 got interpreted as malformed Skinny
svn path=/trunk/; revision=35950
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-skinny.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/dissectors/packet-skinny.c b/epan/dissectors/packet-skinny.c
index 3667f88864..97f220586a 100644
--- a/epan/dissectors/packet-skinny.c
+++ b/epan/dissectors/packet-skinny.c
@@ -2828,6 +2828,10 @@ dissect_skinny(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* check, if this is really an SKINNY packet, they start with a length + 0 */
+ if (tvb_length_remaining(tvb, 0) < 8)
+ {
+ return FALSE;
+ }
/* get relevant header information */
hdr_data_length = tvb_get_letohl(tvb, 0);
hdr_version = tvb_get_letohl(tvb, 4);