2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

2592. [bug] Treat "any" as a type in nsupdate. [RT #19455]

This commit is contained in:
Mark Andrews
2009-04-30 07:10:09 +00:00
parent 47323be2af
commit 3836f447ee
2 changed files with 5 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
2592. [bug] Treat "any" as a type in nsupdate. [RT #19455]
2591. [bug] named could die when processing a update in
removed_orphaned_ds(). [RT #19507]

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: nsupdate.c,v 1.165 2009/01/17 23:47:42 tbox Exp $ */
/* $Id: nsupdate.c,v 1.166 2009/04/30 07:10:09 marka Exp $ */
/*! \file */
@@ -1541,8 +1541,9 @@ update_addordelete(char *cmdline, isc_boolean_t isdelete) {
}
region.base = word;
region.length = strlen(word);
rdataclass = dns_rdataclass_any;
result = dns_rdataclass_fromtext(&rdataclass, &region);
if (result == ISC_R_SUCCESS) {
if (result == ISC_R_SUCCESS && rdataclass != dns_rdataclass_any) {
if (!setzoneclass(rdataclass)) {
fprintf(stderr, "class mismatch: %s\n", word);
goto failure;