Module Name: src
Committed By: snj
Date: Tue Jul 28 22:18:51 UTC 2009
Modified Files:
src/dist/bind/bin/named [netbsd-4]: update.c
Log Message:
Apply patch (requested by christos in ticket #1347):
Fix CVE-2009-0696.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.4.4.2 -r1.1.1.4.4.3 src/dist/bind/bin/named/update.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/dist/bind/bin/named/update.c
diff -u src/dist/bind/bin/named/update.c:1.1.1.4.4.2 src/dist/bind/bin/named/update.c:1.1.1.4.4.3
--- src/dist/bind/bin/named/update.c:1.1.1.4.4.2 Wed Jul 16 01:56:33 2008
+++ src/dist/bind/bin/named/update.c Tue Jul 28 22:18:51 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: update.c,v 1.1.1.4.4.2 2008/07/16 01:56:33 snj Exp $ */
+/* $NetBSD: update.c,v 1.1.1.4.4.3 2009/07/28 22:18:51 snj Exp $ */
/*
* Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC")
@@ -863,7 +863,11 @@
if (type == dns_rdatatype_rrsig ||
type == dns_rdatatype_sig)
covers = dns_rdata_covers(&t->rdata);
- else
+ else if (type == dns_rdatatype_any) {
+ dns_db_detachnode(db, &node);
+ dns_diff_clear(&trash);
+ return (DNS_R_NXRRSET);
+ } else
covers = 0;
/*