Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Staging:C
glibc
dns-ptr-ttl.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dns-ptr-ttl.patch of Package glibc
2015-06-22 Andreas Schwab <schwab@suse.de> [BZ #18513] * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for PTR queries. Index: glibc-2.19/resolv/nss_dns/dns-host.c =================================================================== --- glibc-2.19.orig/resolv/nss_dns/dns-host.c +++ glibc-2.19/resolv/nss_dns/dns-host.c @@ -802,6 +802,10 @@ getanswer_r (const querybuf *answer, int if (qtype == T_PTR && type == T_CNAME) { + /* A CNAME could also have a TTL entry. */ + if (ttlp != NULL && ttl < *ttlp) + *ttlp = ttl; + n = dn_expand (answer->buf, end_of_message, cp, tbuf, sizeof tbuf); if (__builtin_expect (n < 0 || res_dnok (tbuf) == 0, 0)) { @@ -872,6 +876,8 @@ getanswer_r (const querybuf *answer, int ++had_error; break; } + if (ttlp != NULL && ttl < *ttlp) + *ttlp = ttl; #if MULTI_PTRS_ARE_ALIASES cp += n; if (haveanswer == 0)
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