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

2111. [bug] Fix a number of errors reported by Coverity.

[RT #16507]
This commit is contained in:
Mark Andrews
2006-12-07 04:46:27 +00:00
parent 1a8efeab76
commit cfcb0881d1
10 changed files with 35 additions and 28 deletions

View File

@@ -50,7 +50,7 @@
* USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: sdlz.c,v 1.7 2005/11/30 03:33:49 marka Exp $ */
/* $Id: sdlz.c,v 1.8 2006/12/07 04:46:27 marka Exp $ */
/*! \file */
@@ -894,7 +894,8 @@ find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version,
xresult = dns_name_copy(xname, foundname, NULL);
if (xresult != ISC_R_SUCCESS) {
destroynode(node);
if (node != NULL)
destroynode(node);
if (dns_rdataset_isassociated(rdataset))
dns_rdataset_disassociate(rdataset);
return (DNS_R_BADDB);