diff --git a/doc/Changelog b/doc/Changelog index 07147ddbf..82b14794e 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -2,6 +2,7 @@ - Follow draft-ietf-dnsop-default-local-zones-06 added reverse IPv6 example prefix to AS112 default blocklist. - fixup lookup of DS records by client with trustanchor for same. + - libunbound ub_resolve, fix handling of error condition during setup. 3 July 2008: Wouter - Matthijs fixed memory leaks in root hints file reading. diff --git a/libunbound/libunbound.c b/libunbound/libunbound.c index 4b7a6d5e3..901e87033 100644 --- a/libunbound/libunbound.c +++ b/libunbound/libunbound.c @@ -576,6 +576,7 @@ ub_resolve(struct ub_ctx* ctx, char* name, int rrtype, { struct ctx_query* q; int r; + *result = NULL; lock_basic_lock(&ctx->cfglock); if(!ctx->finalized) { @@ -591,7 +592,6 @@ ub_resolve(struct ub_ctx* ctx, char* name, int rrtype, if(!q) return UB_NOMEM; /* become a resolver thread for a bit */ - *result = NULL; r = libworker_fg(ctx, q); if(r) {