]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix possibly uninitialized return value in GetOpenvpnSettings()
authorSelva Nair <selva.nair@gmail.com>
Thu, 20 Feb 2020 00:49:37 +0000 (19:49 -0500)
committerDavid Sommerseth <davids@openvpn.net>
Thu, 20 Feb 2020 17:48:54 +0000 (18:48 +0100)
commite1f7d7885752ac3a0279ecc7e31ccee2af40fbe4
treead81bdc959e9829292a3a08f3f211c1e64bd1286
parent3ca9d94f8688b7851312f7edabae0ff8690bee63
Fix possibly uninitialized return value in GetOpenvpnSettings()

Compile time warning for openvpnserv.exe
common.c:90:11: warning: ‘error’ may be used uninitialized in this
function [-Wmaybe-uninitialized];

Uninitialized value gets returned if install-path is not found
in the registry. Fix by setting it to the return value of
GetRegString().

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Message-Id: <1582159777-2437-1-git-send-email-selva.nair@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19479.html
Signed-off-by: David Sommerseth <davids@openvpn.net>
src/openvpnserv/common.c