mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
Fix#282 libunbound memleak on error condition by Eric Sesterhenn.
git-svn-id: file:///svn/unbound/trunk@1906 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
c56fdce932
commit
62ab524058
2 changed files with 4 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
16 November 2009: Wouter
|
16 November 2009: Wouter
|
||||||
- Fixed signer detection of CNAME responses without signatures.
|
- Fixed signer detection of CNAME responses without signatures.
|
||||||
|
- Fix#282 libunbound memleak on error condition by Eric Sesterhenn.
|
||||||
|
|
||||||
13 November 2009: Wouter
|
13 November 2009: Wouter
|
||||||
- Fixed validation failure for CNAME to optout NSEC3 nodata answer.
|
- Fixed validation failure for CNAME to optout NSEC3 nodata answer.
|
||||||
|
|
|
||||||
|
|
@ -267,6 +267,7 @@ ub_ctx_add_ta(struct ub_ctx* ctx, char* ta)
|
||||||
lock_basic_lock(&ctx->cfglock);
|
lock_basic_lock(&ctx->cfglock);
|
||||||
if(ctx->finalized) {
|
if(ctx->finalized) {
|
||||||
lock_basic_unlock(&ctx->cfglock);
|
lock_basic_unlock(&ctx->cfglock);
|
||||||
|
free(dup);
|
||||||
return UB_AFTERFINAL;
|
return UB_AFTERFINAL;
|
||||||
}
|
}
|
||||||
if(!cfg_strlist_insert(&ctx->env->cfg->trust_anchor_list, dup)) {
|
if(!cfg_strlist_insert(&ctx->env->cfg->trust_anchor_list, dup)) {
|
||||||
|
|
@ -286,6 +287,7 @@ ub_ctx_add_ta_file(struct ub_ctx* ctx, char* fname)
|
||||||
lock_basic_lock(&ctx->cfglock);
|
lock_basic_lock(&ctx->cfglock);
|
||||||
if(ctx->finalized) {
|
if(ctx->finalized) {
|
||||||
lock_basic_unlock(&ctx->cfglock);
|
lock_basic_unlock(&ctx->cfglock);
|
||||||
|
free(dup);
|
||||||
return UB_AFTERFINAL;
|
return UB_AFTERFINAL;
|
||||||
}
|
}
|
||||||
if(!cfg_strlist_insert(&ctx->env->cfg->trust_anchor_file_list, dup)) {
|
if(!cfg_strlist_insert(&ctx->env->cfg->trust_anchor_file_list, dup)) {
|
||||||
|
|
@ -305,6 +307,7 @@ ub_ctx_trustedkeys(struct ub_ctx* ctx, char* fname)
|
||||||
lock_basic_lock(&ctx->cfglock);
|
lock_basic_lock(&ctx->cfglock);
|
||||||
if(ctx->finalized) {
|
if(ctx->finalized) {
|
||||||
lock_basic_unlock(&ctx->cfglock);
|
lock_basic_unlock(&ctx->cfglock);
|
||||||
|
free(dup);
|
||||||
return UB_AFTERFINAL;
|
return UB_AFTERFINAL;
|
||||||
}
|
}
|
||||||
if(!cfg_strlist_insert(&ctx->env->cfg->trusted_keys_file_list, dup)) {
|
if(!cfg_strlist_insert(&ctx->env->cfg->trusted_keys_file_list, dup)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue