From: Antonio Quartulli
Date: Tue, 27 Jun 2017 12:00:47 +0000 (+0800)
Subject: crypto: correct typ0 in error message
X-Git-Tag: v2.3.18~4
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca870b1396a173bbb9752bbe2e69f25fa2c094af;p=thirdparty%2Fopenvpn.git
crypto: correct typ0 in error message
Signed-off-by: Antonio Quartulli
Acked-by: Steffan Karger
Message-Id: <20170627120047.12304-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg14975.html
Signed-off-by: Gert Doering
(cherry picked from commit 778aca3d251b6a563ffbabef95816fab863825e1)
---
diff --git a/src/openvpn/crypto.c b/src/openvpn/crypto.c
index 9d96f1247..517d9a700 100644
--- a/src/openvpn/crypto.c
+++ b/src/openvpn/crypto.c
@@ -905,7 +905,7 @@ read_key_file (struct key2 *key2, const char *file, const unsigned int flags)
in = alloc_buf_gc (2048, &gc);
fd = platform_open (file, O_RDONLY, 0);
if (fd == -1)
- msg (M_ERR, "Cannot open file key file '%s'", file);
+ msg (M_ERR, "Cannot open key file '%s'", file);
size = read (fd, in.data, in.capacity);
if (size < 0)
msg (M_FATAL, "Read error on key file ('%s')", file);