In set_peername, when netaddr.ss_family == AF_UNIX, ai is never initialized.
On line 1733, freeaddrinfo is called unconditionally on ai, which might be NULL in some cases.
The musl implementation of getaddrinfo started to segfault when you pass it NULL. This caused some of the tests to fail on Alpine Linux, namely simple_test inetd and unix.
In
set_peername
, whennetaddr.ss_family == AF_UNIX
,ai
is never initialized.On line 1733,
freeaddrinfo
is called unconditionally onai
, which might beNULL
in some cases.The musl implementation of getaddrinfo started to segfault when you pass it
NULL
. This caused some of the tests to fail on Alpine Linux, namely simple_test inetd and unix.This patch was enough to fix the issue:
Kind regards, Kevin