From 1fcfbb18ef1864b60a58fde4ce18831aebc27a74 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 14 Aug 2007 00:32:13 +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 96b7d35639a..5b83fe9abed 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 9724d18b74c..2a0802fa190 100644 --- a/lib/dns/message.c +++ b/lib/dns/message.c @@ -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); -- 2.47.3