From a91d8841fb78aa6b0f306fbe3c57bde8f2337bd0 Mon Sep 17 00:00:00 2001 From: tobhe Date: Sun, 12 Apr 2020 22:11:30 +0000 Subject: No need to call lc_idtype(). idstr does not contain a leading type specifier (e.g. 'FQDN/'). --- sbin/iked/parse.y | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sbin/iked/parse.y') 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 @@ -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)) { -- cgit v1.2.3