Skip to content

Commit

Permalink
One more fix...
Browse files Browse the repository at this point in the history
  • Loading branch information
ThadHouse committed Sep 8, 2024
1 parent 14c4d0c commit b5ae015
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/platform/datapath_epoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -1538,11 +1538,12 @@ CxPlatSocketContextAcceptCompletion(
goto Error;
}

socklen_t AssignedRemoteAddressLength = sizeof(SocketContext->AcceptSocket->RemoteAddress);
SocketContext->AcceptSocket->SocketContexts[0].SocketFd =
accept(
SocketContext->SocketFd,
&SocketContext->AcceptSocket->RemoteAddress,
sizeof(SocketContext->AcceptSocket->RemoteAddress));
(struct sockaddr*)&SocketContext->AcceptSocket->RemoteAddress,
&AssignedRemoteAddressLength);
if (SocketContext->AcceptSocket->SocketContexts[0].SocketFd == INVALID_SOCKET) {
Status = errno;
QuicTraceEvent(
Expand Down

0 comments on commit b5ae015

Please sign in to comment.