summaryrefslogtreecommitdiff
path: root/lib/bind9
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bind9')
-rw-r--r--lib/bind9/api2
-rw-r--r--lib/bind9/check.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/bind9/api b/lib/bind9/api
index 0e57c8291191..bd19d6da532f 100644
--- a/lib/bind9/api
+++ b/lib/bind9/api
@@ -5,5 +5,5 @@
# 9.9: 90-109
# 9.9-sub: 130-139
LIBINTERFACE = 90
-LIBREVISION = 13
+LIBREVISION = 14
LIBAGE = 0
diff --git a/lib/bind9/check.c b/lib/bind9/check.c
index e7a0200ca9ed..bc7aabe2e0e7 100644
--- a/lib/bind9/check.c
+++ b/lib/bind9/check.c
@@ -2898,6 +2898,7 @@ bind9_check_namedconf(const cfg_obj_t *config, isc_log_t *logctx,
dns_rdataclass_t vclass = dns_rdataclass_in;
const char *key = cfg_obj_asstring(vname);
isc_symvalue_t symvalue;
+ unsigned int symtype;
tresult = ISC_R_SUCCESS;
if (cfg_obj_isstring(vclassobj)) {
@@ -2911,16 +2912,17 @@ bind9_check_namedconf(const cfg_obj_t *config, isc_log_t *logctx,
"view '%s': invalid class %s",
cfg_obj_asstring(vname), r.base);
}
+ symtype = vclass + 1;
if (tresult == ISC_R_SUCCESS && symtab != NULL) {
symvalue.as_cpointer = view;
- tresult = isc_symtab_define(symtab, key, vclass,
+ tresult = isc_symtab_define(symtab, key, symtype,
symvalue,
isc_symexists_reject);
if (tresult == ISC_R_EXISTS) {
const char *file;
unsigned int line;
RUNTIME_CHECK(isc_symtab_lookup(symtab, key,
- vclass, &symvalue) == ISC_R_SUCCESS);
+ symtype, &symvalue) == ISC_R_SUCCESS);
file = cfg_obj_file(symvalue.as_cpointer);
line = cfg_obj_line(symvalue.as_cpointer);
cfg_obj_log(view, logctx, ISC_LOG_ERROR,