2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

1563. [bug] Gracefully fail when unable to obtain neither a IPv4

or a IPv6 dispatch. [RT #10230]
This commit is contained in:
Mark Andrews 2004-01-26 23:44:12 +00:00
parent 96c973a6a9
commit ea40cebe2b
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,6 @@
1563. [bug] Gracefully fail when unable to obtain neither a IPv4
or a IPv6 dispatch. [RT #10230]
1562. [bug] isc_socket_create() and isc_socket_accept() could
leak memory under error conditions. [RT #10230]

View File

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: server.c,v 1.408 2004/01/14 02:06:49 marka Exp $ */
/* $Id: server.c,v 1.409 2004/01/26 23:44:12 marka Exp $ */
#include <config.h>
@ -799,6 +799,13 @@ configure_view(dns_view_t *view, cfg_obj_t *config, cfg_obj_t *vconfig,
*/
CHECK(get_view_querysource_dispatch(maps, AF_INET, &dispatch4));
CHECK(get_view_querysource_dispatch(maps, AF_INET6, &dispatch6));
if (dispatch4 == NULL && dispatch6 == NULL) {
UNEXPECTED_ERROR(__FILE__, __LINE__,
"unable to obtain neither a IPv4 or"
" a IPv6 dispatch");
result = ISC_R_UNEXPECTED;
goto cleanup;
}
CHECK(dns_view_createresolver(view, ns_g_taskmgr, 31,
ns_g_socketmgr, ns_g_timermgr,
0, ns_g_dispatchmgr,