diff --git a/src/node_quic_session.cc b/src/node_quic_session.cc index 1ef6787dfd..5b16d11b63 100644 --- a/src/node_quic_session.cc +++ b/src/node_quic_session.cc @@ -590,7 +590,7 @@ void JSQuicSessionListener::OnSessionTicket(int size, SSL_SESSION* session) { AllocatedBuffer session_ticket = env->AllocateManaged(size); unsigned char* session_data = - reinterpret_cast(session_ticket.data()); + reinterpret_cast(session_ticket.data()); memset(session_data, 0, size); i2d_SSL_SESSION(session, &session_data); if (!session_ticket.empty()) diff --git a/src/node_sockaddr-inl.h b/src/node_sockaddr-inl.h index 6454c10b8b..daec9b6425 100644 --- a/src/node_sockaddr-inl.h +++ b/src/node_sockaddr-inl.h @@ -132,12 +132,12 @@ SocketAddress::SocketAddress(const SocketAddress& addr) { memcpy(&address_, &addr.address_, addr.GetLength()); } -inline SocketAddress& SocketAddress::operator=(const sockaddr* addr) { +SocketAddress& SocketAddress::operator=(const sockaddr* addr) { memcpy(&address_, addr, GetLength(addr)); return *this; } -inline SocketAddress& SocketAddress::operator=(const SocketAddress& addr) { +SocketAddress& SocketAddress::operator=(const SocketAddress& addr) { memcpy(&address_, &addr.address_, addr.GetLength()); }