diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2019-03-24 17:55:18 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2019-03-24 17:55:18 +0000 |
commit | 40240d507964f6081a562bd2aa23600d644f0a4f (patch) | |
tree | 871d1b3b885115be9037828a043cf924b4a4a2d2 /sbin/unwind | |
parent | faf617109e50901409507bb4d834067e6a967181 (diff) |
If we can't check the resolver its state is UNKNOWN.
Diffstat (limited to 'sbin/unwind')
-rw-r--r-- | sbin/unwind/resolver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/unwind/resolver.c b/sbin/unwind/resolver.c index 9b6f6538604..c080025a18c 100644 --- a/sbin/unwind/resolver.c +++ b/sbin/unwind/resolver.c @@ -1,4 +1,4 @@ -/* $OpenBSD: resolver.c,v 1.23 2019/03/24 17:54:52 florian Exp $ */ +/* $OpenBSD: resolver.c,v 1.24 2019/03/24 17:55:17 florian Exp $ */ /* * Copyright (c) 2018 Florian Obser <florian@openbsd.org> @@ -1017,6 +1017,7 @@ check_resolver(struct uw_resolver *res) check_resolver_done, NULL)) != 0) { log_warn("%s: ub_resolve_event: err: %d, %s", __func__, err, ub_strerror(err)); + res->state = UNKNOWN; resolver_unref(check_res); resolver_unref(res); evtimer_add(&res->check_ev, &resolver_check_pause); |