Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
a7e4b894
Commit
a7e4b894
authored
Nov 28, 2000
by
Mark Andrews
Browse files
Check stub dialup option values.
parent
94e5d794
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/config/confzone.c
View file @
a7e4b894
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: confzone.c,v 1.6
5
2000/11/2
5
0
2:43:51
marka Exp $ */
/* $Id: confzone.c,v 1.6
6
2000/11/2
8
0
3: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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment