]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Replace variable length array with malloc
authorLev Stipakov <lstipakov@gmail.com>
Wed, 21 Oct 2015 07:13:26 +0000 (10:13 +0300)
committerGert Doering <gert@greenie.muc.de>
Thu, 22 Oct 2015 18:04:56 +0000 (20:04 +0200)
commit41e4b67a229e774ebc57a882c386e10d80e10e7e
tree4b49d9dad701a7c2fe4d4711aa3be0c7e85dbd77
parent470eb8b6b6a9970a68cb17a185359adffbaeabf5
Replace variable length array with malloc

Commit
https://github.com/OpenVPN/openvpn/commit/685e486e8b8f70c25f09590c24762ff73
4f94a51
introduced a variable length array. Although C99 supports that, MSVS 2013
still requires
size of array to be compiler time constant. As a fix, use malloc/free.

v2:
 Replace OPENSSL_malloc with gc_malloc

Signed-off-by: Lev Stipakov <lstipakov@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1445411606-13369-1-git-send-email-lstipakov@gmail.com>
URL: http://article.gmane.org/gmane.network.openvpn.devel/10344
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl_openssl.c