From 8756066f0e4319a0d4560202569ef3a8dad65006 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 20 Jan 2012 14:18:46 +0000 Subject: Initialize values once in constructor instead of in each branch --- src/tls/tls_messages.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/tls/tls_messages.h') diff --git a/src/tls/tls_messages.h b/src/tls/tls_messages.h index 95c1ba0a0..d29e85f95 100644 --- a/src/tls/tls_messages.h +++ b/src/tls/tls_messages.h @@ -94,13 +94,7 @@ class Client_Hello : public Handshake_Message bool next_protocol = false); Client_Hello(const MemoryRegion& buf, - Handshake_Type type) - { - if(type == CLIENT_HELLO) - deserialize(buf); - else - deserialize_sslv2(buf); - } + Handshake_Type type); private: MemoryVector serialize() const; -- cgit v1.2.3