1221. [bug] Zone types 'master', 'slave' and 'stub' were not being

compared case insensitively. [RT #2542]
This commit is contained in:
Mark Andrews 2002-03-06 23:52:38 +00:00
parent b8b9e2bf5d
commit 608c703d12
2 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,6 @@
1221. [bug] Zone types 'master', 'slave' and 'stub' were not being
compared case insensitively. [RT #2542]
1220. [func] Support for APL rdata type.
1219. [func] Named now reports the TSIG extended error code when

View file

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: config.c,v 1.27 2002/02/20 03:33:10 marka Exp $ */
/* $Id: config.c,v 1.28 2002/03/06 23:52:38 marka Exp $ */
#include <config.h>
@ -224,11 +224,11 @@ ns_config_getzonetype(cfg_obj_t *zonetypeobj) {
char *str;
str = cfg_obj_asstring(zonetypeobj);
if (strcmp(str, "master") == 0)
if (strcasecmp(str, "master") == 0)
ztype = dns_zone_master;
else if (strcmp(str, "slave") == 0)
else if (strcasecmp(str, "slave") == 0)
ztype = dns_zone_slave;
else if (strcmp(str, "stub") == 0)
else if (strcasecmp(str, "stub") == 0)
ztype = dns_zone_stub;
else
INSIST(0);