From 2fa0ead86dc1b8036db888f8c8ff16859a0e3fa4 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Tue, 14 Aug 2007 10:00:47 +0000 Subject: - named could crash when deleting SRV record with UPDATE (#251336) --- bind-9.4-update.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 bind-9.4-update.patch (limited to 'bind-9.4-update.patch') diff --git a/bind-9.4-update.patch b/bind-9.4-update.patch new file mode 100644 index 0000000..80eeef6 --- /dev/null +++ b/bind-9.4-update.patch @@ -0,0 +1,15 @@ +diff -up bind-9.4.1-P1/lib/dns/message.c.update bind-9.4.1-P1/lib/dns/message.c +--- bind-9.4.1-P1/lib/dns/message.c.update 2007-08-14 10:53:25.000000000 +0200 ++++ bind-9.4.1-P1/lib/dns/message.c 2007-08-14 10:54:52.000000000 +0200 +@@ -1308,6 +1308,11 @@ getsection(isc_buffer_t *source, dns_mes + 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); -- cgit