Commit 1bf72e53 authored by Mark Andrews's avatar Mark Andrews
Browse files

silence compiler warning

parent 8908291c
......@@ -7682,9 +7682,21 @@ resquery_response(isc_task_t *task, isc_event_t *event) {
}
/*
* XXXMPA we should really test against the version of
* EDNS we sent in the request.
* EDNS we sent in the request. Some servers return
* BADVERS for unknown EDNS options.
* RFC 2671 was not clear that they should be ignored.
* RFC 6891 is clear that that they should be ignored.
* If we are supporting EDNS > 0 then perform strict
* version checking of badvers responses. We won't
* be sending SIT etc. in that case.
*/
if (version < DNS_EDNS_VERSION) {
#if DNS_EDNS_VERSION == 0
/* Avoids a compiler warning with < 0 */
if (version <= DNS_EDNS_VERSION)
#else
if (version < DNS_EDNS_VERSION)
#endif
{
dns_adb_changeflags(fctx->adb, query->addrinfo,
flags, mask);
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment