fixup error handling in libunbound ub_resolve().

git-svn-id: file:///svn/unbound/trunk@1149 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2008-07-15 10:22:39 +00:00
parent 6acc20abf4
commit 8459b5f55f
2 changed files with 2 additions and 1 deletions

View file

@ -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.

View file

@ -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) {