summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2019-12-06 19:39:15 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2019-12-06 19:39:15 +0000
commite98ad8dcc5c516211bd011eebfdf414140c2b8bb (patch)
tree07f2deed74b9e3714fcb174fc9224f91ac609b14 /sbin
parentae5120adf013f45688fdc0fde2b248550bb86c43 (diff)
Log why an answer is bogus.
OK otto
Diffstat (limited to 'sbin')
-rw-r--r--sbin/unwind/resolver.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/unwind/resolver.c b/sbin/unwind/resolver.c
index e11483059bf..814c97052fd 100644
--- a/sbin/unwind/resolver.c
+++ b/sbin/unwind/resolver.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: resolver.c,v 1.101 2019/12/06 16:41:11 otto Exp $ */
+/* $OpenBSD: resolver.c,v 1.102 2019/12/06 19:39:14 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -998,7 +998,9 @@ resolve_done(struct uw_resolver *res, void *arg, int rcode,
if (res->state == VALIDATING && sec == BOGUS) {
query_imsg->bogus = find_force(&resolver_conf->force,
- query_imsg->qname, NULL) == 0;
+ query_imsg->qname, NULL) == 0;
+ if (query_imsg->bogus && why_bogus != NULL)
+ log_warnx("%s", why_bogus);
} else
query_imsg->bogus = 0;