summaryrefslogtreecommitdiff
path: root/sbin/unwind
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2021-01-26 12:46:47 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2021-01-26 12:46:47 +0000
commitf4f88b4cd3e984b9fc944bb5e9f6a84f2cd3ed06 (patch)
treef8e26975060a325923ac17d90bbc50531b171a01 /sbin/unwind
parent6180449a0288df548f3e4ca64c8aac798465b160 (diff)
Some config changes require a restart of all resolvers even DEAD ones;
handle them like UNKNOWN. Found the hard way by kn.
Diffstat (limited to 'sbin/unwind')
-rw-r--r--sbin/unwind/resolver.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/unwind/resolver.c b/sbin/unwind/resolver.c
index af18795e75a..c1e399b859a 100644
--- a/sbin/unwind/resolver.c
+++ b/sbin/unwind/resolver.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: resolver.c,v 1.135 2021/01/25 16:56:59 florian Exp $ */
+/* $OpenBSD: resolver.c,v 1.136 2021/01/26 12:46:46 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -1120,6 +1120,7 @@ new_resolver(enum uw_resolver_type type, enum uw_resolver_state state)
return;
switch (state) {
+ case DEAD:
case UNKNOWN:
check_resolver(resolvers[type]);
break;
@@ -1129,9 +1130,6 @@ new_resolver(enum uw_resolver_type type, enum uw_resolver_state state)
case RESOLVING:
resolvers[type]->state = state;
break;
- default:
- fatalx("%s: invalid resolver state: %s", __func__,
- uw_resolver_state_str[state]);
}
}