aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl/rec_wri.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ssl/rec_wri.cpp')
-rw-r--r--src/ssl/rec_wri.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ssl/rec_wri.cpp b/src/ssl/rec_wri.cpp
index f8079c235..2ee0e20d3 100644
--- a/src/ssl/rec_wri.cpp
+++ b/src/ssl/rec_wri.cpp
@@ -1,4 +1,4 @@
-/**
+/*
* TLS Record Writing
* (C) 2004-2010 Jack Lloyd
*
@@ -89,7 +89,7 @@ void Record_Writer::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;