2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Fix memory leak in dns_view_find; return DNS_R_HINTNXRRSET instead of

DNS_R_NOTFOUND when correct to do so.
This commit is contained in:
Brian Wellington
2000-12-20 23:31:11 +00:00
parent 24dc90eff0
commit 58cbc05eb0
5 changed files with 22 additions and 12 deletions

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: adb.c,v 1.161 2000/12/20 03:38:41 bwelling Exp $ */
/* $Id: adb.c,v 1.162 2000/12/20 23:31:04 bwelling Exp $ */
/*
* Implementation notes
@@ -423,7 +423,8 @@ static isc_result_t dbfind_a6(dns_adbname_t *, isc_stdtime_t);
#define NXDOMAIN_RESULT(r) ((r) == DNS_R_NXDOMAIN || \
(r) == DNS_R_NCACHENXDOMAIN)
#define NXRRSET_RESULT(r) ((r) == DNS_R_NCACHENXRRSET || \
(r) == DNS_R_NXRRSET)
(r) == DNS_R_NXRRSET || \
(r) == DNS_R_HINTNXRRSET)
/*
* Error state rankings.