From 86d16c54044dc3df13e6479a437148388f1520fc Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Thu, 10 Feb 2022 17:35:44 -0500 Subject: More clang-tidy fixes --- src/lib/tls/tls_handshake_io.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/lib/tls') diff --git a/src/lib/tls/tls_handshake_io.cpp b/src/lib/tls/tls_handshake_io.cpp index 867f8f9a6..5678fcecf 100644 --- a/src/lib/tls/tls_handshake_io.cpp +++ b/src/lib/tls/tls_handshake_io.cpp @@ -127,7 +127,7 @@ std::vector Stream_Handshake_IO::send(const Handshake_Message& msg) return std::vector(); // not included in handshake hashes } - const std::vector buf = format(msg_bits, msg.type()); + auto buf = format(msg_bits, msg.type()); m_send_hs(HANDSHAKE, buf); return buf; } @@ -432,8 +432,7 @@ std::vector Datagram_Handshake_IO::send_message(uint16_t msg_seq, { const size_t DTLS_HANDSHAKE_HEADER_LEN = 12; - const std::vector no_fragment = - format_w_seq(msg_bits, msg_type, msg_seq); + auto no_fragment = format_w_seq(msg_bits, msg_type, msg_seq); if(no_fragment.size() + DTLS_HEADER_SIZE <= m_mtu) { -- cgit v1.2.3