mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-18 12:42:54 -05:00
- Fix Race Condition in autr_tp_create(),
reported by X41 D-Sec.
This commit is contained in:
parent
d79d75538b
commit
1fa40654d2
2 changed files with 3 additions and 1 deletions
|
|
@ -1,6 +1,8 @@
|
|||
20 November 2019: Wouter
|
||||
- Fix Out of Bounds Read in rrinternal_get_owner(),
|
||||
reported by X41 D-Sec.
|
||||
- Fix Race Condition in autr_tp_create(),
|
||||
reported by X41 D-Sec.
|
||||
|
||||
19 November 2019: Wouter
|
||||
- Fix CVE-2019-18934, shell execution in ipsecmod.
|
||||
|
|
|
|||
|
|
@ -370,10 +370,10 @@ autr_tp_create(struct val_anchors* anchors, uint8_t* own, size_t own_len,
|
|||
free(tp);
|
||||
return NULL;
|
||||
}
|
||||
lock_basic_unlock(&anchors->lock);
|
||||
lock_basic_init(&tp->lock);
|
||||
lock_protect(&tp->lock, tp, sizeof(*tp));
|
||||
lock_protect(&tp->lock, tp->autr, sizeof(*tp->autr));
|
||||
lock_basic_unlock(&anchors->lock);
|
||||
return tp;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue