mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-12 21:07:43 +02:00
- Update error printout for duplicate trust anchors to include the
trust anchor name (relates to #920).
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user