mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
silently reject MD and MF updates.
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: update.c,v 1.91 2001/11/30 01:58:50 gson Exp $ */
|
/* $Id: update.c,v 1.92 2001/12/11 23:53:13 marka Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -2278,6 +2278,20 @@ update_action(isc_task_t *task, isc_event_t *event) {
|
|||||||
&name, &rdata, &covers, &ttl, &update_class);
|
&name, &rdata, &covers, &ttl, &update_class);
|
||||||
|
|
||||||
if (update_class == zoneclass) {
|
if (update_class == zoneclass) {
|
||||||
|
|
||||||
|
/*
|
||||||
|
* RFC 1123 doesn't allow MF and MD in master zones. */
|
||||||
|
if (rdata.type == dns_rdatatype_md ||
|
||||||
|
rdata.type == dns_rdatatype_mf) {
|
||||||
|
char typebuf[DNS_RDATATYPE_FORMATSIZE];
|
||||||
|
|
||||||
|
dns_rdatatype_format(rdata.type, typebuf,
|
||||||
|
sizeof(typebuf));
|
||||||
|
update_log(client, zone, LOGLEVEL_PROTOCOL,
|
||||||
|
"attempt to add %s ignored",
|
||||||
|
typebuf);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (rdata.type == dns_rdatatype_cname) {
|
if (rdata.type == dns_rdatatype_cname) {
|
||||||
CHECK(cname_incompatible_rrset_exists(db, ver,
|
CHECK(cname_incompatible_rrset_exists(db, ver,
|
||||||
name,
|
name,
|
||||||
|
Reference in New Issue
Block a user