mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-03 04:09:28 -05:00
- Update error printout for duplicate trust anchors to include the
trust anchor name (relates to #920).
This commit is contained in:
parent
1f46d5945b
commit
fe03bacd6c
2 changed files with 10 additions and 2 deletions
|
|
@ -1,3 +1,7 @@
|
|||
22 January 2024: Yorgos
|
||||
- Update error printout for duplicate trust anchors to include the
|
||||
trust anchor name (relates to #920).
|
||||
|
||||
22 January 2024: Wouter
|
||||
- Fix for #997: Print details for SSL certificate failure.
|
||||
|
||||
|
|
|
|||
|
|
@ -353,17 +353,21 @@ autr_tp_create(struct val_anchors* anchors, uint8_t* own, size_t own_len,
|
|||
|
||||
lock_basic_lock(&anchors->lock);
|
||||
if(!rbtree_insert(anchors->tree, &tp->node)) {
|
||||
char buf[LDNS_MAX_DOMAINLEN+1];
|
||||
lock_basic_unlock(&anchors->lock);
|
||||
log_err("trust anchor presented twice");
|
||||
dname_str(tp->name, buf);
|
||||
log_err("trust anchor for '%s' presented twice", buf);
|
||||
free(tp->name);
|
||||
free(tp->autr);
|
||||
free(tp);
|
||||
return NULL;
|
||||
}
|
||||
if(!rbtree_insert(&anchors->autr->probe, &tp->autr->pnode)) {
|
||||
char buf[LDNS_MAX_DOMAINLEN+1];
|
||||
(void)rbtree_delete(anchors->tree, tp);
|
||||
lock_basic_unlock(&anchors->lock);
|
||||
log_err("trust anchor in probetree twice");
|
||||
dname_str(tp->name, buf);
|
||||
log_err("trust anchor for '%s' in probetree twice", buf);
|
||||
free(tp->name);
|
||||
free(tp->autr);
|
||||
free(tp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue