summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2020-01-25 10:53:39 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2020-01-25 10:53:39 +0000
commit840c3e5f41e295f662bcd742f7058ab9145e715f (patch)
tree3760774da3baeda9675034fcf8cc193b448b837f /usr.sbin
parent2d8f7a68cff25667bd570d27a53272591e5ccac2 (diff)
The config parser lets us know when the key file can't be found.
Not need to check beforehand and enter a race.
Diffstat (limited to 'usr.sbin')
-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;