Module Name: src Committed By: snj Date: Tue Jul 28 22:25:09 UTC 2009
Modified Files: src/dist/bind/bin/named [netbsd-5-0]: update.c Log Message: Apply patch (requested by christos in ticket #881): Fix CVE-2009-0696. To generate a diff of this commit: cvs rdiff -u -r1.1.1.6 -r1.1.1.6.8.1 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.6 src/dist/bind/bin/named/update.c:1.1.1.6.8.1 --- src/dist/bind/bin/named/update.c:1.1.1.6 Sat Jun 21 18:35:06 2008 +++ src/dist/bind/bin/named/update.c Tue Jul 28 22:25:09 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: update.c,v 1.1.1.6 2008/06/21 18:35:06 christos Exp $ */ +/* $NetBSD: update.c,v 1.1.1.6.8.1 2009/07/28 22:25:09 snj Exp $ */ /* * Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC") @@ -913,7 +913,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; /*