From 62988a246becb98820354190561a8aa00df2f8b9 Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 9 Jun 2010 11:32:05 +0000 Subject: Fix comparison to use IVs with a hypothetical negotiated TLS that uses a larger major version #. --- src/ssl/rec_read.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ssl/rec_read.cpp') diff --git a/src/ssl/rec_read.cpp b/src/ssl/rec_read.cpp index 336191557..8b655f5bc 100644 --- a/src/ssl/rec_read.cpp +++ b/src/ssl/rec_read.cpp @@ -74,7 +74,7 @@ void Record_Reader::set_keys(const CipherSuite& suite, const SessionKeys& keys, ); block_size = block_size_of(cipher_algo); - if(major == 3 && minor >= 2) + if(major > 3 || (major == 3 && minor >= 2)) iv_size = block_size; else iv_size = 0; -- cgit v1.2.3