You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cc test.c ./libopenbsd.a
$ ./a.out
gataddrinfo error: Invalid flags
Only of the AI_CANONNAME and AI_FQDN bits can be set, Only the AI_CANONNAME and AI_FQDN bits can be set, and are verified in getaddrinfo_async_run() as follows:
Executing the following test code in Alpine Linux will result in a BADFLAGS error.
Only of the AI_CANONNAME and AI_FQDN bits can be set, Only the AI_CANONNAME and AI_FQDN bits can be set, and are verified in getaddrinfo_async_run() as follows:
OpenSMTPD/openbsd-compat/libasr/getaddrinfo_async.c
Lines 166 to 171 in bf2a083
But, on systems such as Linux with musl that do not define AI_FQDN, it is defined as AI_CANONNAME at build time:
OpenSMTPD/openbsd-compat/libasr/asr_compat.h
Lines 49 to 51 in bf2a083
However, smtpd is not affected by this issue because the AI_CANONNAME flag is used by libc's getaddrinfo().
OpenSMTPD/usr.sbin/smtpd/util.c
Lines 769 to 770 in bf2a083
The text was updated successfully, but these errors were encountered: