aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_messages.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-01-20 14:18:46 +0000
committerlloyd <[email protected]>2012-01-20 14:18:46 +0000
commit8756066f0e4319a0d4560202569ef3a8dad65006 (patch)
tree4881137249ca5f25a90dc514c1dc447ece6cb489 /src/tls/tls_messages.h
parentf7f94a9ade8869caca24aed9bde92bce117991f7 (diff)
Initialize values once in constructor instead of in each branch
Diffstat (limited to 'src/tls/tls_messages.h')
-rw-r--r--src/tls/tls_messages.h8
1 files changed, 1 insertions, 7 deletions
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<byte>& buf,
- Handshake_Type type)
- {
- if(type == CLIENT_HELLO)
- deserialize(buf);
- else
- deserialize_sslv2(buf);
- }
+ Handshake_Type type);
private:
MemoryVector<byte> serialize() const;