summaryrefslogtreecommitdiffstats
path: root/usr.sbin/unbound/validator/val_utils.c
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2018-03-29 19:44:35 +0000
committerflorian <florian@openbsd.org>2018-03-29 19:44:35 +0000
commit938a3a5ef6489d21887d4422b07c8172f6006834 (patch)
tree5c0e4c75a5705946f1c0fd15f0f9971242742919 /usr.sbin/unbound/validator/val_utils.c
parentSet p->p_cpu in cpu_switchto() like we do on other MP architectures. (diff)
downloadwireguard-openbsd-938a3a5ef6489d21887d4422b07c8172f6006834.tar.xz
wireguard-openbsd-938a3a5ef6489d21887d4422b07c8172f6006834.zip
update to unbound 1.7.0
testing tb, sthen OK benno, sthen
Diffstat (limited to 'usr.sbin/unbound/validator/val_utils.c')
-rw-r--r--usr.sbin/unbound/validator/val_utils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/unbound/validator/val_utils.c b/usr.sbin/unbound/validator/val_utils.c
index 0eabb7f33ba..2f36fccfd4f 100644
--- a/usr.sbin/unbound/validator/val_utils.c
+++ b/usr.sbin/unbound/validator/val_utils.c
@@ -767,7 +767,8 @@ rrsig_get_labcount(struct packed_rrset_data* d, size_t sig)
}
int
-val_rrset_wildcard(struct ub_packed_rrset_key* rrset, uint8_t** wc)
+val_rrset_wildcard(struct ub_packed_rrset_key* rrset, uint8_t** wc,
+ size_t* wc_len)
{
struct packed_rrset_data* d = (struct packed_rrset_data*)rrset->
entry.data;
@@ -800,6 +801,7 @@ val_rrset_wildcard(struct ub_packed_rrset_key* rrset, uint8_t** wc)
if(labdiff > 0) {
*wc = wn;
dname_remove_labels(wc, &wl, labdiff);
+ *wc_len = wl;
return 1;
}
return 1;
@@ -1161,6 +1163,6 @@ val_find_DS(struct module_env* env, uint8_t* nm, size_t nmlen, uint16_t c,
qinfo.local_alias = NULL;
/* do not add SOA to reply message, it is going to be used internal */
msg = val_neg_getmsg(env->neg_cache, &qinfo, region, env->rrset_cache,
- env->scratch_buffer, *env->now, 0, topname);
+ env->scratch_buffer, *env->now, 0, topname, env->cfg);
return msg;
}