]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2210. [bug] Deleting class specific records via UPDATE could
authorMark Andrews <marka@isc.org>
Tue, 14 Aug 2007 00:32:13 +0000 (00:32 +0000)
committerMark Andrews <marka@isc.org>
Tue, 14 Aug 2007 00:32:13 +0000 (00:32 +0000)
                        fail.  [RT #17074]

CHANGES
lib/dns/message.c

diff --git a/CHANGES b/CHANGES
index 96b7d35639a252c571b749de4b5a8c85460582ca..5b83fe9abedebb734a2ee1acec0cbcbdaae17b6f 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2210.  [bug]           Deleting class specific records via UPDATE could
+                       fail.  [RT #17074]
+
 2209.  [port]          osx: linking against user supplied static OpenSSL
                        libraries failed as the system ones were still being
                        found. [RT #17078]
index 9724d18b74c9d7a25b767d67d7f443c56ee8c5d7..2a0802fa190de0cfe59eed4e5b9304a8a5fcf06a 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: message.c,v 1.194.2.22 2007/05/15 23:45:26 tbox Exp $ */
+/* $Id: message.c,v 1.194.2.23 2007/08/14 00:32:13 marka Exp $ */
 
 /***
  *** Imports
@@ -1305,6 +1305,11 @@ getsection(isc_buffer_t *source, dns_message_t *msg, dns_decompress_t *dctx,
                        rdata->type = rdtype;
                        rdata->flags = DNS_RDATA_UPDATE;
                        result = ISC_R_SUCCESS;
+               } else if (rdclass == dns_rdataclass_none &&
+                          msg->opcode == dns_opcode_update &&
+                          sectionid == DNS_SECTION_UPDATE) {
+                       result = getrdata(source, msg, dctx, msg->rdclass,
+                                         rdtype, rdatalen, rdata);
                } else
                        result = getrdata(source, msg, dctx, rdclass,
                                          rdtype, rdatalen, rdata);