mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
1274. [func] preferred-glue option from BIND 8.3.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: check.c,v 1.32 2002/04/17 01:23:15 marka Exp $ */
|
||||
/* $Id: check.c,v 1.33 2002/04/26 00:40:28 marka Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -207,6 +207,18 @@ check_options(cfg_obj_t *options, isc_log_t *logctx) {
|
||||
result = ISC_R_RANGE;
|
||||
}
|
||||
}
|
||||
obj = NULL;
|
||||
(void)cfg_map_get(options, "preferred-glue", &obj);
|
||||
if (obj != NULL) {
|
||||
const char *str;
|
||||
str = cfg_obj_asstring(obj);
|
||||
if (strcasecmp(str, "a") != 0 &&
|
||||
strcasecmp(str, "aaaa") != 0 &&
|
||||
strcasecmp(str, "none") != 0)
|
||||
cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
|
||||
"preferred-glue unexpected value '%s'",
|
||||
str);
|
||||
}
|
||||
return (result);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user