From f95cd9245d2e889a756b187452dafaf68e795179 Mon Sep 17 00:00:00 2001 From: Daniel Neus Date: Mon, 11 Jan 2016 11:55:42 +0100 Subject: Remaining cppcheck fixes that are not covered by GH #444 --- src/lib/tls/msg_finished.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/lib/tls/msg_finished.cpp') diff --git a/src/lib/tls/msg_finished.cpp b/src/lib/tls/msg_finished.cpp index b837172b6..2d6b11995 100644 --- a/src/lib/tls/msg_finished.cpp +++ b/src/lib/tls/msg_finished.cpp @@ -48,9 +48,8 @@ std::vector finished_compute_verify(const Handshake_State& state, */ Finished::Finished(Handshake_IO& io, Handshake_State& state, - Connection_Side side) + Connection_Side side) : m_verification_data(finished_compute_verify( state, side )) { - m_verification_data = finished_compute_verify(state, side); state.hash().update(io.send(*this)); } @@ -65,10 +64,8 @@ std::vector Finished::serialize() const /* * Deserialize a Finished message */ -Finished::Finished(const std::vector& buf) - { - m_verification_data = buf; - } +Finished::Finished(const std::vector& buf) : m_verification_data(buf) + {} /* * Verify a Finished message -- cgit v1.2.3