diff --git a/CHANGES b/CHANGES index 2e9096d3b3..34fabd508d 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2523. [bug] Random type rdata freed by dns_nsec_typepresent(). + [RT #19112] + 2522. [placeholder] 2521. [bug] Improve epoll cross compilation support. [RT #19047] diff --git a/lib/dns/nsec.c b/lib/dns/nsec.c index 53a3b5e041..4860cc82f8 100644 --- a/lib/dns/nsec.c +++ b/lib/dns/nsec.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: nsec.c,v 1.11 2008/09/25 04:02:38 tbox Exp $ */ +/* $Id: nsec.c,v 1.12 2009/01/06 09:06:02 fdupont Exp $ */ /*! \file */ @@ -220,7 +220,7 @@ dns_nsec_typepresent(dns_rdata_t *nsec, dns_rdatatype_t type) { type % 256)); break; } - dns_rdata_freestruct(&nsec); + dns_rdata_freestruct(&nsecstruct); return (present); }