Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
[Squash] nits
Browse files Browse the repository at this point in the history
Co-Authored-By: Anna Henningsen <github@addaleax.net>
  • Loading branch information
jasnell and addaleax authored Dec 4, 2019
1 parent 40afd42 commit eacc82c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/node_quic_session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ void JSQuicSessionListener::OnSessionTicket(int size, SSL_SESSION* session) {

AllocatedBuffer session_ticket = env->AllocateManaged(size);
unsigned char* session_data =
reinterpret_cast<unsigned char*>(session_ticket.data());
reinterpret_cast<unsigned char*>(session_ticket.data());
memset(session_data, 0, size);
i2d_SSL_SESSION(session, &session_data);
if (!session_ticket.empty())
Expand Down
4 changes: 2 additions & 2 deletions src/node_sockaddr-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit eacc82c

Please sign in to comment.