summaryrefslogtreecommitdiff
path: root/usr.sbin/unbound/dns64
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2017-02-17 18:53:33 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2017-02-17 18:53:33 +0000
commit3d7e55155dd0acaba23dc19920091ee5580ad180 (patch)
tree128498ff1499e8cde628b28e9707636bd4d161a5 /usr.sbin/unbound/dns64
parent57a7719d7ee152a16a7ac027d83bcce25a6a46ac (diff)
Update to unbound-1.6.1rc3 - thanks millert@ and Brad for tests.
Diffstat (limited to 'usr.sbin/unbound/dns64')
-rw-r--r--usr.sbin/unbound/dns64/dns64.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/unbound/dns64/dns64.c b/usr.sbin/unbound/dns64/dns64.c
index 2fde67841bb..befec864d6a 100644
--- a/usr.sbin/unbound/dns64/dns64.c
+++ b/usr.sbin/unbound/dns64/dns64.c
@@ -825,8 +825,9 @@ dns64_inform_super(struct module_qstate* qstate, int id,
}
/* Store the generated response in cache. */
- if (!dns_cache_store(super->env, &super->qinfo, super->return_msg->rep,
- 0, 0, 0, NULL, super->query_flags))
+ if (!super->no_cache_store &&
+ !dns_cache_store(super->env, &super->qinfo, super->return_msg->rep,
+ 0, 0, 0, NULL, super->query_flags))
log_err("out of memory");
}
@@ -872,7 +873,7 @@ static struct module_func_block dns64_block = {
* Function for returning the above function block.
*/
struct module_func_block *
-dns64_get_funcblock()
+dns64_get_funcblock(void)
{
return &dns64_block;
}