From ebe2f21dde0bd26261af633a96867df2372779cb Mon Sep 17 00:00:00 2001 From: Juraj Somorovsky Date: Wed, 21 Sep 2016 14:32:30 +0200 Subject: Removed redundant check in ClientHello parser --- src/lib/tls/msg_client_hello.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/lib') 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 Client_Hello::serialize() const */ Client_Hello::Client_Hello(const std::vector& buf) { - if(buf.size() == 0) - throw Decoding_Error("Client_Hello: Packet corrupted"); - if(buf.size() < 41) throw Decoding_Error("Client_Hello: Packet corrupted"); -- cgit v1.2.3