aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/rec_wri.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-12-29 00:36:20 +0000
committerlloyd <[email protected]>2011-12-29 00:36:20 +0000
commitf0e1aea7930133531d33572b1957945c911d2a20 (patch)
tree8492ab340eafa19815541318a82b676afa62a117 /src/tls/rec_wri.cpp
parenteb6b59f2aef6a4999be244c7d90ace3f6bbcac5d (diff)
Only insert small fragments for application records. Handshakes would
only be affected if the attacker can modify the handshake messages, which seems fairly unlikely, and some implementations are known to be unhappy with fragmented handshakes.
Diffstat (limited to 'src/tls/rec_wri.cpp')
-rw-r--r--src/tls/rec_wri.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tls/rec_wri.cpp b/src/tls/rec_wri.cpp
index 336c18ab4..d372475d6 100644
--- a/src/tls/rec_wri.cpp
+++ b/src/tls/rec_wri.cpp
@@ -145,7 +145,7 @@ void Record_Writer::send(byte type, const byte input[], size_t length)
*
* See http://www.openssl.org/~bodo/tls-cbc.txt for background.
*/
- if((block_size > 0) && (iv_size == 0))
+ if((type == APPLICATION) && (block_size > 0) && (iv_size == 0))
{
send_record(type, &input[0], 1);
input += 1;