Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 304558 Details for
Bug 275091
Too many timeouts resolving $DOMAIN (in $DOMAIN?): disabling EDNS
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
simple patch
any.patch (text/plain), 1.45 KB, created by
Adam Tkac
on 2008-05-05 20:49:28 UTC
(
hide
)
Description:
simple patch
Filename:
MIME Type:
Creator:
Adam Tkac
Created:
2008-05-05 20:49:28 UTC
Size:
1.45 KB
patch
obsolete
>diff -up bind-9.5.0b3/lib/isc/netaddr.c.any bind-9.5.0b3/lib/isc/netaddr.c >--- bind-9.5.0b3/lib/isc/netaddr.c.any 2008-05-05 22:01:29.000000000 +0200 >+++ bind-9.5.0b3/lib/isc/netaddr.c 2008-05-05 22:24:52.000000000 +0200 >@@ -69,10 +69,11 @@ isc_boolean_t > isc_netaddr_eqprefix(const isc_netaddr_t *a, const isc_netaddr_t *b, > unsigned int prefixlen) > { >- const unsigned char *pa, *pb; >+ const unsigned char *pa, *pb, *pany; > unsigned int ipabytes; /* Length of whole IP address in bytes */ > unsigned int nbytes; /* Number of significant whole bytes */ > unsigned int nbits; /* Number of significant leftover bits */ >+ isc_netaddr_t any; /* represents 0.0.0.0 or ::0 */ > > REQUIRE(a != NULL && b != NULL); > >@@ -86,11 +87,15 @@ isc_netaddr_eqprefix(const isc_netaddr_t > case AF_INET: > pa = (const unsigned char *) &a->type.in; > pb = (const unsigned char *) &b->type.in; >+ isc_netaddr_any(&any); >+ pany = (const unsigned char *) &any.type.in; > ipabytes = 4; > break; > case AF_INET6: > pa = (const unsigned char *) &a->type.in6; > pb = (const unsigned char *) &b->type.in6; >+ isc_netaddr_any6(&any); >+ pany = (const unsigned char *) &any.type.in6; > ipabytes = 16; > break; > default: >@@ -99,6 +104,10 @@ isc_netaddr_eqprefix(const isc_netaddr_t > return (ISC_FALSE); > } > >+ if (memcmp(pa, pany, ipabytes) == 0 || >+ memcmp(pb, pany, ipabytes) == 0) >+ return (ISC_TRUE); >+ > /* > * Don't crash if we get a pattern like 10.0.0.1/9999999. > */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 275091
:
198401
|
304558
|
305175