From 5059b393e80cda6beffb74f2f30d7329502c41e6 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 14 Aug 2007 00:25:08 +0000 Subject: [PATCH] 2210. [bug] Deleting class specific records via UPDATE could fail. [RT #17074] --- CHANGES | 3 +++ lib/dns/message.c | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 8296f8459d..c7ca509cc5 100644 --- 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] diff --git a/lib/dns/message.c b/lib/dns/message.c index dd15e522e8..e9ba3fd04d 100644 --- a/lib/dns/message.c +++ b/lib/dns/message.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: message.c,v 1.236 2007/06/18 23:47:40 tbox Exp $ */ +/* $Id: message.c,v 1.237 2007/08/14 00:25:08 marka Exp $ */ /*! \file */ @@ -1337,6 +1337,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);