mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
the presence of a "unix" control channel type in named.conf caused all hell
to break loose
This commit is contained in:
parent
b872e86042
commit
77e38fb51c
1 changed files with 15 additions and 1 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue