Commit 251da362 authored by accela's avatar accela

throw handshake_error instead of interal to avoid DOS

parent cf08ca77
......@@ -738,7 +738,7 @@ restart:
if (m_readBuffer.remaining() > m_encryption.length_ia())
throw internal_error("Read past initial payload after incoming encrypted handshake.");
throw handshake_error(ConnectionManager::handshake_failed, e_handshake_invalid_value);
if (m_encryption.crypto() != HandshakeEncryption::crypto_rc4)>set_obfuscated();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment