Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
212cbe38
Commit
212cbe38
authored
Apr 05, 2000
by
James Brister
Browse files
Fixed case of checking for allow-update and update-policy together.
log message change
parent
ce8c050e
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/config/confzone.c
View file @
212cbe38
...
...
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: confzone.c,v 1.3
4
2000/0
3/30
1
7
:21:
13
brister Exp $ */
/* $Id: confzone.c,v 1.3
5
2000/0
4/05
1
5
:21:
07
brister Exp $ */
#include <config.h>
...
...
@@ -198,7 +198,7 @@ dns_c_zonelist_checkzones(dns_c_zonelist_t *list)
dns_ssutable_t
*
ssutable
=
NULL
;
isc_result_t
result
;
const
char
*
autherr
=
"zone `%s': allow-update is ignored when "
"
specified with update-policy
"
;
"
update-policy is also used.
"
;
REQUIRE
(
DNS_C_ZONELIST_VALID
(
list
));
...
...
@@ -209,17 +209,24 @@ dns_c_zonelist_checkzones(dns_c_zonelist_t *list)
ipmlist
=
NULL
;
ssutable
=
NULL
;
result
=
dns_c_zone_getallowupd
(
zone
,
&
ipmlist
);
if
(
result
==
ISC_R_SUCCESS
)
{
result
=
dns_c_zone_getssuauth
(
zone
,
&
ssutable
);
/*
* Check for allow-update and update-policty together
*/
if
(
zone
->
ztype
==
dns_c_zone_master
)
{
result
=
dns_c_zone_getallowupd
(
zone
,
&
ipmlist
);
if
(
result
==
ISC_R_SUCCESS
)
{
isc_log_write
(
dns_lctx
,
DNS_LOGCATEGORY_CONFIG
,
DNS_LOGMODULE_CONFIG
,
ISC_LOG_WARNING
,
autherr
,
zone
->
name
);
dns_c_zone_unsetallowupd
(
zone
);
result
=
dns_c_zone_getssuauth
(
zone
,
&
ssutable
);
if
(
result
==
ISC_R_SUCCESS
)
{
isc_log_write
(
dns_lctx
,
DNS_LOGCATEGORY_CONFIG
,
DNS_LOGMODULE_CONFIG
,
ISC_LOG_WARNING
,
autherr
,
zone
->
name
);
dns_c_zone_unsetallowupd
(
zone
);
}
dns_c_ipmatchlist_detach
(
&
ipmlist
);
}
dns_c_ipmatchlist_detach
(
&
ipmlist
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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