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

Initialize all tvresults to ISC_R_UNSET

This commit is contained in:
Ondřej Surý
2018-08-24 21:38:06 +02:00
committed by Stephen Morris
parent edf5c01fcb
commit 55361748d7

View File

@@ -746,7 +746,7 @@ verifynsec3(const vctx_t *vctx, const dns_name_t *name,
dns_rdata_nsec3param_t nsec3param;
dns_fixedname_t fixed;
dns_name_t *hashname;
isc_result_t result, tvresult;
isc_result_t result, tvresult = ISC_R_UNSET;
dns_dbnode_t *node = NULL;
unsigned char rawhash[NSEC3_MAX_HASH_LENGTH];
size_t rhsize = sizeof(rawhash);
@@ -975,7 +975,7 @@ verifynode(vctx_t *vctx, const dns_name_t *name, dns_dbnode_t *node,
unsigned char types[8192];
unsigned int maxtype = 0;
dns_rdataset_t rdataset; dns_rdatasetiter_t *rdsiter = NULL;
isc_result_t result, tvresult;
isc_result_t result, tvresult = ISC_R_UNSET;
REQUIRE(vresult != NULL || (nsecset == NULL && nsec3paramset == NULL));
@@ -1298,7 +1298,7 @@ verifyemptynodes(const vctx_t *vctx, const dns_name_t *name,
int order;
unsigned int labels, nlabels, i;
dns_name_t suffix;
isc_result_t result, tvresult;
isc_result_t result, tvresult = ISC_R_UNSET;
*vresult = ISC_R_SUCCESS;
@@ -1744,7 +1744,7 @@ verify_nodes(vctx_t *vctx, isc_result_t *vresult) {
dns_dbnode_t *node = NULL, *nextnode;
dns_dbiterator_t *dbiter = NULL;
bool done = false;
isc_result_t tvresult;
isc_result_t tvresult = ISC_R_UNSET;
isc_result_t result;
name = dns_fixedname_initname(&fname);