Blame bind-9.5-edns.patch
|
Adam Tkac |
038864 |
diff -up bind-9.5.0b3/lib/dns/resolver.c.edns bind-9.5.0b3/lib/dns/resolver.c
|
|
Adam Tkac |
038864 |
--- bind-9.5.0b3/lib/dns/resolver.c.edns 2008-05-13 08:55:43.000000000 +0200
|
|
Adam Tkac |
038864 |
+++ bind-9.5.0b3/lib/dns/resolver.c 2008-05-13 08:58:12.000000000 +0200
|
|
Adam Tkac |
038864 |
@@ -1552,13 +1552,16 @@ resquery_send(resquery_t *query) {
|
|
Adam Tkac |
038864 |
dns_peer_getsupportedns(peer, &useedns) == ISC_R_SUCCESS &&
|
|
Adam Tkac |
038864 |
!useedns)
|
|
Adam Tkac |
038864 |
{
|
|
Adam Tkac |
038864 |
- query->options |= DNS_FETCHOPT_NOEDNS0;
|
|
Adam Tkac |
038864 |
dns_adb_changeflags(fctx->adb,
|
|
Adam Tkac |
038864 |
query->addrinfo,
|
|
Adam Tkac |
038864 |
DNS_FETCHOPT_NOEDNS0,
|
|
Adam Tkac |
038864 |
DNS_FETCHOPT_NOEDNS0);
|
|
Adam Tkac |
038864 |
}
|
|
Adam Tkac |
038864 |
|
|
Adam Tkac |
038864 |
+ /* Sync query->options and query->addrinfo->flags now */
|
|
Adam Tkac |
038864 |
+ if ((query->addrinfo->flags & DNS_FETCHOPT_NOEDNS0) != 0)
|
|
Adam Tkac |
038864 |
+ query->options |= DNS_FETCHOPT_NOEDNS0;
|
|
Adam Tkac |
038864 |
+
|
|
Adam Tkac |
038864 |
/*
|
|
Adam Tkac |
038864 |
* Use EDNS0, unless the caller doesn't want it, or we know that
|
|
Adam Tkac |
038864 |
* the remote server doesn't like it.
|