diff --git a/bin/named/server.c b/bin/named/server.c index 94d44d48d3..113a838be7 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -6074,8 +6074,8 @@ configure_alternates(const cfg_obj_t *config, dns_view_t *view, } myport = (in_port_t)val; } - CHECK(dns_resolver_addalternate(view->resolver, NULL, - name, myport)); + dns_resolver_addalternate(view->resolver, NULL, name, + myport); continue; } @@ -6083,7 +6083,7 @@ configure_alternates(const cfg_obj_t *config, dns_view_t *view, if (isc_sockaddr_getport(&sa) == 0) { isc_sockaddr_setport(&sa, port); } - CHECK(dns_resolver_addalternate(view->resolver, &sa, NULL, 0)); + dns_resolver_addalternate(view->resolver, &sa, NULL, 0); } cleanup: diff --git a/lib/dns/include/dns/resolver.h b/lib/dns/include/dns/resolver.h index 918bddf928..85d81c0c8a 100644 --- a/lib/dns/include/dns/resolver.h +++ b/lib/dns/include/dns/resolver.h @@ -434,7 +434,7 @@ dns_resolver_setlamettl(dns_resolver_t *resolver, uint32_t lame_ttl); *\li 'resolver' to be valid. */ -isc_result_t +void dns_resolver_addalternate(dns_resolver_t *resolver, const isc_sockaddr_t *alt, const dns_name_t *name, in_port_t port); /*%< diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index 7a50004310..1402dd786f 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -10708,7 +10708,7 @@ dns_resolver_setlamettl(dns_resolver_t *resolver, uint32_t lame_ttl) { resolver->lame_ttl = lame_ttl; } -isc_result_t +void dns_resolver_addalternate(dns_resolver_t *resolver, const isc_sockaddr_t *alt, const dns_name_t *name, in_port_t port) { alternate_t *a; @@ -10729,8 +10729,6 @@ dns_resolver_addalternate(dns_resolver_t *resolver, const isc_sockaddr_t *alt, } ISC_LINK_INIT(a, link); ISC_LIST_APPEND(resolver->alternates, a, link); - - return (ISC_R_SUCCESS); } void