The getaddrinfo wrapper ignores AI_NUMERICHOST, and while it does use the libc getaddrinfo() to avoid doing the parsing manually, it should only be done if hints.flags includes AI_NUMERICHOST.
Hi Andrew. Could you provide your test case or part of code please?
Created attachment 11414 [details] Proposed patch Please ignore previous comment. Sorry for noise. Proposed patch. Could somebody review it please?
Created attachment 11415 [details] Proposed patch v2 Proposed patch v2. Just minor cleanup in test case.
Robin, is this patch still valid for the current master tree? If yes, please rebase it.
Hi Andreas. New proposed patch rebased against master is here: https://github.com/marmolak/nss_wrapper/commit/e3feb955d5512bf5c7bbc4f24feb48fc1d4d03bc
nss_wrapper-1.1.0 has been released addressing the issue.