summaryrefslogtreecommitdiff
path: root/sbin/iked/parse.y
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-04-12 22:11:30 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-04-12 22:11:30 +0000
commita91d8841fb78aa6b0f306fbe3c57bde8f2337bd0 (patch)
treeca2e054d3ab61ddf1412ac2ee161b709a25f5192 /sbin/iked/parse.y
parent9ba88df2c8077065e3029ca1d72ef95720c5dfdf (diff)
No need to call lc_idtype(). idstr does not contain a leading type
specifier (e.g. 'FQDN/').
Diffstat (limited to 'sbin/iked/parse.y')
-rw-r--r--sbin/iked/parse.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/iked/parse.y b/sbin/iked/parse.y
index a69fcbc8ad5..9740f7e35c1 100644
--- a/sbin/iked/parse.y
+++ b/sbin/iked/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.91 2020/04/10 20:58:32 tobhe Exp $ */
+/* $OpenBSD: parse.y,v 1.92 2020/04/12 22:11:29 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -1994,7 +1994,6 @@ set_policy(char *idstr, int type, struct iked_policy *pol)
return (-1);
}
- lc_idtype(idstr);
if ((size_t)snprintf(keyfile, sizeof(keyfile),
IKED_CA IKED_PUBKEY_DIR "%s/%s", prefix,
idstr) >= sizeof(keyfile)) {