]> git.ipfire.org Git - thirdparty/openvpn.git/commit
management: >REMOTE operation would overwrite ce change indicator
authorDavid Sommerseth <davids@openvpn.net>
Tue, 10 Jan 2017 20:34:32 +0000 (21:34 +0100)
committerDavid Sommerseth <davids@openvpn.net>
Thu, 12 Jan 2017 01:50:57 +0000 (02:50 +0100)
commita853cd060eb61df77055cbb92e97ad7f245f2316
treec1385a7b7726e917c14d27b282fd7e9ce658bf41
parent6204fccb2441b5bae8b3f6e0b31a4a0b232fc8e6
management: >REMOTE operation would overwrite ce change indicator

If the management interface on a client received a signal while waiting
for input on the management channel, the "connection entry changed" status
would be overwritten even though nothing was changed.  Which could lead
into connecting to the wrong server.

This patch improves this by adding a check if a bool value was changed to
false.  This change happens only on signals.

Further, the former 'ret' value have been renamed to 'ce_changed', to
clarify what the expected return value contains.  Plus adding some comments
related to this.

And finally do some code style cleanup, breaking up too long lines, adding
some air here and there to improve the readability.

Signed-off-by: David Sommerseth <davids@openvpn.net>
Cc: Selva Nair <selva.nair@gmail.com>
Acked-by: Selva Nair <selva.nair@gmail.com>
Message-Id: <1484080473-10415-1-git-send-email-davids@openvpn.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13851.html
Signed-off-by: David Sommerseth <davids@openvpn.net>
(cherry picked from commit e81f313a71e548638d9e9679226ee84b3b614f13)
src/openvpn/init.c