From b48a5b800a00e955cada6c418848c3bc460e44e7 Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 28 Dec 2011 22:24:22 +0000 Subject: Fix for RC4 suites --- src/tls/rec_wri.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tls/rec_wri.cpp') diff --git a/src/tls/rec_wri.cpp b/src/tls/rec_wri.cpp index 0e8a6228c..ade2bd2d6 100644 --- a/src/tls/rec_wri.cpp +++ b/src/tls/rec_wri.cpp @@ -223,7 +223,8 @@ void Record_Writer::send_record(byte type, const byte input[], size_t length) mac->update(input, length); const size_t buf_size = round_up(iv_size + length + - mac->output_length() + 1, + mac->output_length() + + (block_size ? 1 : 0), block_size); if(buf_size >= MAX_CIPHERTEXT_SIZE) -- cgit v1.2.3