Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
glibc-testsuite.4900
getaddrinfo-uninit-result.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File getaddrinfo-uninit-result.patch of Package glibc-testsuite.4900
* sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over non-matching result from nscd. Index: glibc-2.19/sysdeps/posix/getaddrinfo.c =================================================================== --- glibc-2.19.orig/sysdeps/posix/getaddrinfo.c +++ glibc-2.19/sysdeps/posix/getaddrinfo.c @@ -712,6 +712,18 @@ gaih_inet (const char *name, const struc { socklen_t size = (air->family[i] == AF_INET ? INADDRSZ : IN6ADDRSZ); + + if (!((air->family[i] == AF_INET + && req->ai_family == AF_INET6 + && (req->ai_flags & AI_V4MAPPED) != 0) + || req->ai_family == AF_UNSPEC + || air->family[i] == req->ai_family)) + { + /* Skip over non-matching result. */ + addrs += size; + continue; + } + if (*pat == NULL) { *pat = addrfree++;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor