mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-21 14:17:27 -04:00
pullup:
1221. [bug] Zone types 'master', 'slave' and 'stub' were not being
compared case insensitively. [RT #2542]
This commit is contained in:
parent
4da8460d04
commit
27cd2ff244
2 changed files with 7 additions and 4 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,6 +1,9 @@
|
|||
1229. [bug] named would crash if it received a TSIG signed
|
||||
query as part of an AXFR response. [RT #2570]
|
||||
|
||||
1221. [bug] Zone types 'master', 'slave' and 'stub' were not being
|
||||
compared case insensitively. [RT #2542]
|
||||
|
||||
1218. [bug] Named incorrectly returned SERVFAIL rather than
|
||||
NOTAUTH when there was a TSIG BADTIME error. [RT #2519]
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: config.c,v 1.11.2.3 2002/02/08 03:57:09 marka Exp $ */
|
||||
/* $Id: config.c,v 1.11.2.4 2002/03/20 20:32:41 marka Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -203,11 +203,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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue