]> 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:31:54 +0000 (02:31 +0100)
commite81f313a71e548638d9e9679226ee84b3b614f13
tree527f4a989d491b499851a5b0dc5f944de6de8967
parentd0d8a4b5f875bc802117647b20a3caa6d4fdb375
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>
src/openvpn/init.c