]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Allow a few levels of recursion in virtual_output_callback()
authorSelva Nair <selva.nair@gmail.com>
Thu, 28 Jul 2022 03:45:08 +0000 (23:45 -0400)
committerGert Doering <gert@greenie.muc.de>
Tue, 23 Aug 2022 18:23:13 +0000 (20:23 +0200)
commit468f53ae3bfcfca6563acbf648e7a0bc6f94b038
treea16d6fd931e5162aecc81ae5f03868945c568285
parent5b178f591c882a6600414104a77a9240f7a29331
Allow a few levels of recursion in virtual_output_callback()

Without this, replies to commands from the management client
are sometimes lost if the server is writing when a command
comes in and leads to a recursive call to this function.

For some reason I've not been able to trigger this on Linux,
but it does sometimes happen on Windows during intense write
activity by openvpn.exe sending log lines to the management
client.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220728034508.15180-2-selva.nair@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24751.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 4dfd592ff1ee18aa4859264c8a341dfa1a291988)
src/openvpn/manage.c