From f3f6f580b385d40c01c3dbff2f5e55ec7a35894d Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Mon, 21 Feb 2022 12:50:07 +0100 Subject: [PATCH] ovpncli: fix uninitialied value in config_templ (CID 11125) CID 11125 (#1 of 1): Uninitialized scalar variable (UNINIT) 8. uninit_use_in_call: Using uninitialized value config_templ.enableNonPreferredDCAlgorithms when calling Config. flood.cpp:1320 Signed-off-by: Frank Lichtenheld --- client/ovpncli.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ovpncli.hpp b/client/ovpncli.hpp index a1a4e536..170ae1f8 100644 --- a/client/ovpncli.hpp +++ b/client/ovpncli.hpp @@ -333,9 +333,9 @@ namespace openvpn { // By default modern OpenVPN version (OpenVPN 2.6 and OpenVPN core 3.7) will only allow // preferred algorithms (AES-GCM, Chacha20-Poly1305) that also work with the newer DCO - // implementations. If this enable, we fall back to allowing all algorithms (if these are + // implementations. If this is enabled, we fall back to allowing all algorithms (if these are // supported by the crypto library) - bool enableNonPreferredDCAlgorithms; + bool enableNonPreferredDCAlgorithms = false; }; // used to communicate VPN events such as connect, disconnect, etc.