Skip to content

Commit 5206374

Browse files
dmjohn-marvelllguohan
authored andcommitted
[sonic-swss]: Fix for FPM accept call failure in ARM arch (sonic-net#925)
1 parent e904451 commit 5206374

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fpmsyncd/fpmlink.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ FpmLink::~FpmLink()
7171
void FpmLink::accept()
7272
{
7373
struct sockaddr_in client_addr;
74-
socklen_t client_len;
74+
75+
// Ref: man 3 accept
76+
// address_len argument, on input, specifies the length of the supplied sockaddr structure
77+
socklen_t client_len = sizeof(struct sockaddr_in);
7578

7679
m_connection_socket = ::accept(m_server_socket, (struct sockaddr *)&client_addr,
7780
&client_len);

0 commit comments

Comments
 (0)