]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Repair --secret deprecation warning.
authorGert Doering <gert@greenie.muc.de>
Sat, 17 Apr 2021 10:05:44 +0000 (12:05 +0200)
committerGert Doering <gert@greenie.muc.de>
Sat, 17 Apr 2021 12:11:05 +0000 (14:11 +0200)
commit 60f5889ae formally deprecated use of configs without either
"tls-client" or "tls-server" - but got the booleans wrong.

Fix.

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <20210417100544.5497-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22139.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c

index 3dd22d5287d7323e374b1a8ef233027291664e77..ef854c766d1f4c98a2867e1b66ce11202022757b 100644 (file)
@@ -2541,7 +2541,7 @@ options_postprocess_verify_ce(const struct options *options,
         msg(M_USAGE, "specify only one of --tls-server, --tls-client, or --secret");
     }
 
-    if (!options->tls_server || !options->tls_client)
+    if (!options->tls_server && !options->tls_client)
     {
         msg(M_INFO, "DEPRECATION: No tls-client or tls-server option in "
                     "configuration detected. OpenVPN 2.7 will remove the "