]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Double check that we do not use a freed buffer when freeing a session
authorArne Schwabe <arne@rfc2549.org>
Wed, 25 Oct 2023 15:46:24 +0000 (17:46 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 8 Nov 2023 12:57:58 +0000 (13:57 +0100)
commitcd4d819c99266fa727c294225cafdb4ae331d02e
tree97f67b24c42f479b6fcda6c41f910957a7625a16
parent1cfca659244e362f372d9843351257f456392a2f
Double check that we do not use a freed buffer when freeing a session

This is a find cases where the session already has planned to send out
a packet but encounters some other errors that invalidate the session,
setting it to S_ERROR and leaving the buffer behind.

This will detect and clear that to_link buffer in that case.

Change-Id: I5ffb41bed1c9237946b13d787eb4c4013e0bec68
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: David Sommerseth <davids@openvpn.net>
Acked-by: Heiko Hund <heiko@ist.eigentlich.net>
Message-Id: <20231108124947.76816-2-gert@greenie.muc.de>
URL: https://www.mail-archive.com/search?l=mid&q=20231108124947.76816-2-gert@greenie.muc.de
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl.c