mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 05:28:00 +00:00
move variable initialization
This commit is contained in:
parent
cbb781f277
commit
a78196366c
@ -15,7 +15,7 @@
|
||||
* 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>
|
||||
|
||||
@ -3118,6 +3118,7 @@ ncache_message(fetchctx_t *fctx, dns_rdatatype_t covers, isc_stdtime_t now) {
|
||||
secure_domain = ISC_FALSE;
|
||||
eresult = ISC_R_SUCCESS;
|
||||
name = &fctx->name;
|
||||
node = NULL;
|
||||
|
||||
/*
|
||||
* 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
|
||||
event = NULL;
|
||||
|
||||
node = NULL;
|
||||
result = dns_db_findnode(fctx->cache, name, ISC_TRUE, &node);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
goto unlock;
|
||||
|
@ -15,7 +15,7 @@
|
||||
* 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>
|
||||
|
||||
@ -287,6 +287,8 @@ lwres_gabnresponse_parse(lwres_context_t *ctx, lwres_buffer_t *b,
|
||||
gabn->naliases = naliases;
|
||||
gabn->naddrs = naddrs;
|
||||
|
||||
LWRES_LIST_INIT(addrlist);
|
||||
|
||||
if (naliases > 0) {
|
||||
gabn->aliases = CTXMALLOC(sizeof(char *) * naliases);
|
||||
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++) {
|
||||
addr = CTXMALLOC(sizeof(lwres_addr_t));
|
||||
if (addr == NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user