aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ssl.c
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2012-03-01 15:50:43 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2012-03-01 15:50:43 +0000
commita7e2d55198f2a4627b2a9aed68f97fae4ef9cb43 (patch)
tree9b6fc99921f851133805a33a6049d1790b6eb8a1 /epan/dissectors/packet-ssl.c
parentd8d9450a4f9bcd114dcfb547125cb225d1cb1437 (diff)
downloadwireshark-a7e2d55198f2a4627b2a9aed68f97fae4ef9cb43.tar.gz
wireshark-a7e2d55198f2a4627b2a9aed68f97fae4ef9cb43.tar.bz2
wireshark-a7e2d55198f2a4627b2a9aed68f97fae4ef9cb43.zip
Fix CID 473 and 474.
svn path=/trunk/; revision=41267
Diffstat (limited to 'epan/dissectors/packet-ssl.c')
-rw-r--r--epan/dissectors/packet-ssl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ssl.c b/epan/dissectors/packet-ssl.c
index 0abf6d48bf..3fc284e40f 100644
--- a/epan/dissectors/packet-ssl.c
+++ b/epan/dissectors/packet-ssl.c
@@ -4674,11 +4674,13 @@ ssl_looks_like_valid_pct_handshake(tvbuff_t *tvb, const guint32 offset,
/* version follows msg byte, so verify that this is valid */
version = tvb_get_ntohs(tvb, offset+1);
ret = (version == PCT_VERSION_1);
+ break;
case PCT_MSG_SERVER_HELLO:
/* version is one byte after msg_type */
version = tvb_get_ntohs(tvb, offset+2);
ret = (version == PCT_VERSION_1);
+ break;
case PCT_MSG_CLIENT_MASTER_KEY:
/* sum of various length fields must be less than record length */