+3551. [bug] resolver.querydscp[46] were uninitialized. [RT #32686]
+
3550. [func] Unified the internal and export versions of the
BIND libraries, allowing external clients to use
the same libraries as BIND. [RT #33131]
session-keyalg hmac-sha256;\n\
deallocate-on-exit true;\n\
# directory <none>\n\
- dscp 0;\n\
dump-file \"named_dump.db\";\n\
fake-iquery no;\n\
has-old-clients false;\n\
isc_result_t
ns_config_getdscp(const cfg_obj_t *config, isc_dscp_t *dscpp) {
- const cfg_obj_t *maps[2];
const cfg_obj_t *options = NULL;
const cfg_obj_t *dscpobj = NULL;
isc_result_t result;
- int i;
(void)cfg_map_get(config, "options", &options);
- i = 0;
- if (options != NULL)
- maps[i++] = options;
- maps[i] = NULL;
+ if (options == NULL)
+ return (ISC_R_SUCCESS);
- result = ns_config_get(maps, "dscp", &dscpobj);
+ result = cfg_map_get(options, "dscp", &dscpobj);
if (result != ISC_R_SUCCESS || dscpobj == NULL) {
*dscpp = -1;
return (ISC_R_SUCCESS);