This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Per feedback on my previous attempt to fix getaddrinfo failures
after recovering from a failure:
https://sourceware.org/ml/libc-alpha/2016-07/msg00341.html
here is a simpler patch that checks status before checking
h_errno.
The patch basically adds back a test that was previously
present. I am not 100% convinced that it catches all cases
of NSS status being set in a way that ought to be reported
as an error coming from getaddrinfo, but I can't find
any actual examples.
2016-07-25 Stan Shebs <stanshebs@google.com>
* sysdeps/posix/getaddrinfo.c (gaih_inet): Test status before
looking at h_errno.
* posix/tst-getaddrinfo6.c: New test.
* posix/Makefile (tests): Add tst-getaddrinfo6.
Attachment:
gai-patch-2
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |