diff options
author | Juraj Somorovsky <[email protected]> | 2016-09-21 14:32:30 +0200 |
---|---|---|
committer | Juraj Somorovsky <[email protected]> | 2016-09-30 00:57:12 +0200 |
commit | ebe2f21dde0bd26261af633a96867df2372779cb (patch) | |
tree | 1c65d367a48d8f5e7072e7e85d9cc92d915a45d3 /src/lib/tls/msg_client_hello.cpp | |
parent | 024cf552377231d176099a893219c54158fab8f3 (diff) |
Removed redundant check in ClientHello parser
Diffstat (limited to 'src/lib/tls/msg_client_hello.cpp')
-rw-r--r-- | src/lib/tls/msg_client_hello.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib/tls/msg_client_hello.cpp b/src/lib/tls/msg_client_hello.cpp index 56e226a40..b493fd3ee 100644 --- a/src/lib/tls/msg_client_hello.cpp +++ b/src/lib/tls/msg_client_hello.cpp @@ -221,9 +221,6 @@ std::vector<byte> Client_Hello::serialize() const */ Client_Hello::Client_Hello(const std::vector<byte>& buf) { - if(buf.size() == 0) - throw Decoding_Error("Client_Hello: Packet corrupted"); - if(buf.size() < 41) throw Decoding_Error("Client_Hello: Packet corrupted"); |