mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix use-after-free in out-of-memory handling code (thanks Jake
Montgomery). git-svn-id: file:///svn/unbound/trunk@2900 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
4a3efd5ea9
commit
416df19f6d
2 changed files with 6 additions and 2 deletions
|
|
@ -1,3 +1,7 @@
|
|||
16 May 2013: Wouter
|
||||
- Fix use-after-free in out-of-memory handling code (thanks Jake
|
||||
Montgomery).
|
||||
|
||||
15 May 2013: Wouter
|
||||
- Fix round-robin doesn't work with some Windows clients (from Ilya
|
||||
Bakulin).
|
||||
|
|
|
|||
|
|
@ -494,8 +494,8 @@ static struct val_neg_zone* neg_zone_chain(
|
|||
struct val_neg_zone* p=first, *np;
|
||||
while(p) {
|
||||
np = p->parent;
|
||||
free(p);
|
||||
free(p->name);
|
||||
free(p);
|
||||
p = np;
|
||||
}
|
||||
return NULL;
|
||||
|
|
@ -640,8 +640,8 @@ static struct val_neg_data* neg_data_chain(
|
|||
struct val_neg_data* p = first, *np;
|
||||
while(p) {
|
||||
np = p->parent;
|
||||
free(p);
|
||||
free(p->name);
|
||||
free(p);
|
||||
p = np;
|
||||
}
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue