]> git.ipfire.org Git - thirdparty/openvpn.git/commit
interactive.c: fix usage of potentially uninitialized variable
authorLev Stipakov <lev@openvpn.net>
Mon, 8 Oct 2018 18:12:58 +0000 (21:12 +0300)
committerGert Doering <gert@greenie.muc.de>
Wed, 10 Oct 2018 18:06:26 +0000 (20:06 +0200)
commitd1f0e2cf83c378b4064f316a2127c7a3d7c6ca21
tree5b288212859a60711f8671e01d761fb86eadd41a
parent00d78cd57fa52aa5a65df1707922791e72313663
interactive.c: fix usage of potentially uninitialized variable

In function netsh_dns_cmd() it is possible to jump on a label and
call free() on uninitialized pointer. Move pointer initialization
above jump.

To fix a few warnings which are treated as errors with SDL enabled,
initialize pointers with NULL.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Selva Nair <selva.nair@gmail.com>
Message-Id: <1539022378-24485-1-git-send-email-lstipakov@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg17663.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpnserv/interactive.c