diff --git a/tests/libqtest.c b/tests/libqtest.c index 6d333ef0ac278c40f7bb05165d8e83787f8cd43a..1d73fd19539689ed44a68d173c45400e5ffbbc91 100644 --- a/tests/libqtest.c +++ b/tests/libqtest.c @@ -74,6 +74,7 @@ static int socket_accept(int sock) socklen_t addrlen; int ret; + addrlen = sizeof(addr); do { ret = accept(sock, (struct sockaddr *)&addr, &addrlen); } while (ret == -1 && errno == EINTR);