]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Plug memory leak if push is interrupted
authorSteffan Karger <steffan.karger@fox-it.com>
Wed, 17 Jan 2018 13:16:24 +0000 (14:16 +0100)
committerGert Doering <gert@greenie.muc.de>
Thu, 25 Jan 2018 13:26:00 +0000 (14:26 +0100)
commitd04032c3f236cf7c726d6b162686bcb71fda2e15
treeb82a799f1c8da76693026521380b59fef630e171
parente10f32174cf17b77896fc92744974352a3ee1874
Plug memory leak if push is interrupted

If a push is interrupted due to a timeout, c->c2.pulled_options_state is
never freed.  Fix that by always cleaning up any remaining pulled
options state when we close a connection.

This changes the mbedtls implementation of md_ctx_cleanup to actually
clean up the context, which was not needed earlier.

Signed-off-by: Steffan Karger <steffan.karger@fox-it.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1516194984-1540-1-git-send-email-steffan.karger@fox-it.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg16265.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 07036fd3c456ed4ebf1809d8d9f34941d42865d0)
src/openvpn/crypto_mbedtls.c
src/openvpn/init.c