]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2592. [bug] Treat "any" as a type in nsupdate. [RT #19455]
authorMark Andrews <marka@isc.org>
Thu, 30 Apr 2009 07:10:09 +0000 (07:10 +0000)
committerMark Andrews <marka@isc.org>
Thu, 30 Apr 2009 07:10:09 +0000 (07:10 +0000)
CHANGES
bin/nsupdate/nsupdate.c

diff --git a/CHANGES b/CHANGES
index b66a9180359d9a92de90f5003c6cfac64ad98ae6..ffb34e37c4bd2a591e69d20ba762324c52d56333 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -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]
 
index ae63bb287000d429842652a22f3ef383ed438425..8c435c515f74afb84f7b59265a29420f5cde0fe8 100644 (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;