mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 14:53:15 -05:00
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:
parent
6acc20abf4
commit
8459b5f55f
2 changed files with 2 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue