Skip to content

Commit

Permalink
[sonic-swss]: Fix for FPM accept call failure in ARM arch (sonic-net#925
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dmjohn-marvell authored and lguohan committed Jun 19, 2019
1 parent e904451 commit 5206374
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fpmsyncd/fpmlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ FpmLink::~FpmLink()
void FpmLink::accept()
{
struct sockaddr_in client_addr;
socklen_t client_len;

// Ref: man 3 accept
// address_len argument, on input, specifies the length of the supplied sockaddr structure
socklen_t client_len = sizeof(struct sockaddr_in);

m_connection_socket = ::accept(m_server_socket, (struct sockaddr *)&client_addr,
&client_len);
Expand Down

0 comments on commit 5206374

Please sign in to comment.