summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2020-01-25 10:53:38 +0000
committerflorian <florian@openbsd.org>2020-01-25 10:53:38 +0000
commit25e91f2169a565562dfcfa4c4adb57190801020e (patch)
treef1d72c86ed7ed8c004fce0fcdac21feb8168bf61
parentisc/unix/syslog is unused (diff)
downloadwireguard-openbsd-25e91f2169a565562dfcfa4c4adb57190801020e.tar.xz
wireguard-openbsd-25e91f2169a565562dfcfa4c4adb57190801020e.zip
The config parser lets us know when the key file can't be found.
Not need to check beforehand and enter a race.
-rw-r--r--usr.sbin/bind/bin/dig/dighost.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/bind/bin/dig/dighost.c b/usr.sbin/bind/bin/dig/dighost.c
index 8c2c419c2d8..30d0b47778b 100644
--- a/usr.sbin/bind/bin/dig/dighost.c
+++ b/usr.sbin/bind/bin/dig/dighost.c
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dighost.c,v 1.37 2020/01/23 08:14:12 florian Exp $ */
+/* $Id: dighost.c,v 1.38 2020/01/25 10:53:38 florian Exp $ */
/*! \file
* \note
@@ -1260,9 +1260,6 @@ read_confkey(void) {
const char *algorithm;
isc_result_t result;
- if (! isc_file_exists(keyfile))
- return (ISC_R_FILENOTFOUND);
-
result = cfg_parser_create(NULL, &pctx);
if (result != ISC_R_SUCCESS)
goto cleanup;