mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- fix unaligned structure making a false positive in checklock
unitialised memory. git-svn-id: file:///svn/unbound/trunk@4490 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
cc9a0671f3
commit
8605797002
2 changed files with 7 additions and 2 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
1 February 2018: Wouter
|
||||||
|
- fix unaligned structure making a false positive in checklock
|
||||||
|
unitialised memory.
|
||||||
|
|
||||||
29 January 2018: Ralph
|
29 January 2018: Ralph
|
||||||
- Use NSEC with longest ce to prove wildcard absence.
|
- Use NSEC with longest ce to prove wildcard absence.
|
||||||
- Only use *.ce to prove wildcard absence, no longer names.
|
- Only use *.ce to prove wildcard absence, no longer names.
|
||||||
|
|
|
||||||
|
|
@ -632,8 +632,9 @@ query_info_entrysetup(struct query_info* q, struct reply_info* r,
|
||||||
e->entry.data = r;
|
e->entry.data = r;
|
||||||
lock_rw_init(&e->entry.lock);
|
lock_rw_init(&e->entry.lock);
|
||||||
lock_protect(&e->entry.lock, &e->key, sizeof(e->key));
|
lock_protect(&e->entry.lock, &e->key, sizeof(e->key));
|
||||||
lock_protect(&e->entry.lock, &e->entry.hash, sizeof(e->entry.hash) +
|
lock_protect(&e->entry.lock, &e->entry.hash, sizeof(e->entry.hash));
|
||||||
sizeof(e->entry.key) + sizeof(e->entry.data));
|
lock_protect(&e->entry.lock, &e->entry.key, sizeof(e->entry.key));
|
||||||
|
lock_protect(&e->entry.lock, &e->entry.data, sizeof(e->entry.data));
|
||||||
lock_protect(&e->entry.lock, e->key.qname, e->key.qname_len);
|
lock_protect(&e->entry.lock, e->key.qname, e->key.qname_len);
|
||||||
q->qname = NULL;
|
q->qname = NULL;
|
||||||
return e;
|
return e;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue