mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
move variable initialization
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: resolver.c,v 1.215 2001/04/11 20:37:44 bwelling Exp $ */
|
/* $Id: resolver.c,v 1.216 2001/05/29 23:07:28 bwelling Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -3118,6 +3118,7 @@ ncache_message(fetchctx_t *fctx, dns_rdatatype_t covers, isc_stdtime_t now) {
|
|||||||
secure_domain = ISC_FALSE;
|
secure_domain = ISC_FALSE;
|
||||||
eresult = ISC_R_SUCCESS;
|
eresult = ISC_R_SUCCESS;
|
||||||
name = &fctx->name;
|
name = &fctx->name;
|
||||||
|
node = NULL;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Is DNSSEC validation required for this name?
|
* Is DNSSEC validation required for this name?
|
||||||
@@ -3201,7 +3202,6 @@ ncache_message(fetchctx_t *fctx, dns_rdatatype_t covers, isc_stdtime_t now) {
|
|||||||
} else
|
} else
|
||||||
event = NULL;
|
event = NULL;
|
||||||
|
|
||||||
node = NULL;
|
|
||||||
result = dns_db_findnode(fctx->cache, name, ISC_TRUE, &node);
|
result = dns_db_findnode(fctx->cache, name, ISC_TRUE, &node);
|
||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
goto unlock;
|
goto unlock;
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: lwres_gabn.c,v 1.26 2001/01/09 21:59:30 bwelling Exp $ */
|
/* $Id: lwres_gabn.c,v 1.27 2001/05/29 23:02:52 bwelling Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -287,6 +287,8 @@ lwres_gabnresponse_parse(lwres_context_t *ctx, lwres_buffer_t *b,
|
|||||||
gabn->naliases = naliases;
|
gabn->naliases = naliases;
|
||||||
gabn->naddrs = naddrs;
|
gabn->naddrs = naddrs;
|
||||||
|
|
||||||
|
LWRES_LIST_INIT(addrlist);
|
||||||
|
|
||||||
if (naliases > 0) {
|
if (naliases > 0) {
|
||||||
gabn->aliases = CTXMALLOC(sizeof(char *) * naliases);
|
gabn->aliases = CTXMALLOC(sizeof(char *) * naliases);
|
||||||
if (gabn->aliases == NULL) {
|
if (gabn->aliases == NULL) {
|
||||||
@@ -301,7 +303,6 @@ lwres_gabnresponse_parse(lwres_context_t *ctx, lwres_buffer_t *b,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LWRES_LIST_INIT(addrlist);
|
|
||||||
for (x = 0 ; x < naddrs ; x++) {
|
for (x = 0 ; x < naddrs ; x++) {
|
||||||
addr = CTXMALLOC(sizeof(lwres_addr_t));
|
addr = CTXMALLOC(sizeof(lwres_addr_t));
|
||||||
if (addr == NULL) {
|
if (addr == NULL) {
|
||||||
|
Reference in New Issue
Block a user