[PATCH] Test status before h_errno in gaih_inet
Stan Shebs
stanshebs@google.com
Mon Jul 25 18:31:00 GMT 2016
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gai-patch-2
Type: application/octet-stream
Size: 4125 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20160725/d916147f/attachment.obj>
More information about the Libc-alpha
mailing list