Commit a7e4b894 authored by Mark Andrews's avatar Mark Andrews
Browse files

Check stub dialup option values.

parent 94e5d794
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: confzone.c,v 1.65 2000/11/25 02:43:51 marka Exp $ */
/* $Id: confzone.c,v 1.66 2000/11/28 03:22:55 marka Exp $ */
#include <config.h>
......@@ -1690,6 +1690,14 @@ dns_c_zone_setdialup(dns_c_zone_t *zone, dns_dialuptype_t newval) {
break;
case dns_c_zone_stub:
if (newval == dns_dialuptype_notify ||
newval == dns_dialuptype_notifypassive) {
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"non-stub dialup option '%s'",
dialup_totext(newval));
return (ISC_R_FAILURE);
}
zone->u.tzone.dialup = newval;
existed = DNS_C_CHECKBIT(TZ_DIALUP_BIT,
&zone->u.tzone.setflags);
......
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