summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2018-12-11 13:46:55 +0000
committersthen <sthen@openbsd.org>2018-12-11 13:46:55 +0000
commitc3fcbbac3014aa974b6325e8818882a322fab957 (patch)
tree55f1ef41ca9fac873037e619cd447a5383c465d8
parentdo some imsg renaming to make them more clear (diff)
downloadwireguard-openbsd-c3fcbbac3014aa974b6325e8818882a322fab957.tar.xz
wireguard-openbsd-c3fcbbac3014aa974b6325e8818882a322fab957.zip
Fix dns64 allocation in wrong region for returned internal queries.
(This is the only code change in upstream release 1.8.3).
-rw-r--r--usr.sbin/unbound/dns64/dns64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/unbound/dns64/dns64.c b/usr.sbin/unbound/dns64/dns64.c
index 6c81192f117..77e689000ef 100644
--- a/usr.sbin/unbound/dns64/dns64.c
+++ b/usr.sbin/unbound/dns64/dns64.c
@@ -925,7 +925,7 @@ dns64_inform_super(struct module_qstate* qstate, int id,
* successful or not. This lets the state machine terminate.
*/
if(!super_dq) {
- super_dq = (struct dns64_qstate*)regional_alloc(qstate->region,
+ super_dq = (struct dns64_qstate*)regional_alloc(super->region,
sizeof(*super_dq));
super->minfo[id] = super_dq;
memset(super_dq, 0, sizeof(*super_dq));