From 77e38fb51ce0ecb9e31f8f712b5f26da631c79a3 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Mon, 10 Jul 2000 21:49:00 +0000 Subject: [PATCH] the presence of a "unix" control channel type in named.conf caused all hell to break loose --- bin/named/omapiconf.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/bin/named/omapiconf.c b/bin/named/omapiconf.c index 787ec19419..6e2c5cbc0a 100644 --- a/bin/named/omapiconf.c +++ b/bin/named/omapiconf.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: omapiconf.c,v 1.2 2000/07/10 16:47:48 gson Exp $ */ +/* $Id: omapiconf.c,v 1.3 2000/07/10 21:49:00 tale Exp $ */ /* * Principal Author: DCL @@ -422,6 +422,20 @@ ns_omapi_configure(isc_mem_t *mctx, dns_c_ctx_t *cctx, control != NULL; control = dns_c_ctrl_next(control)) { + if (control->control_type != dns_c_inet_control) { + /* + * The only other type coming out of the + * configuration system is dns_c_unix_control. + */ + isc_log_write(ns_g_lctx, + ISC_LOGCATEGORY_GENERAL, + NS_LOGMODULE_OMAPI, + ISC_LOG_WARNING, + "unix command channel type is " + "not supported"); + continue; + } + isc_sockaddr_format(&control->u.inet_v.addr, socktext, sizeof(socktext));