]> git.ipfire.org Git - thirdparty/openvpn.git/commit
management: preserve wait_for_push field when asking for user/pass
authorAntonio Quartulli <a@unstable.cc>
Fri, 7 Jul 2017 14:01:08 +0000 (22:01 +0800)
committerDavid Sommerseth <davids@openvpn.net>
Mon, 24 Jul 2017 13:21:13 +0000 (15:21 +0200)
commite7ae4040efc5c48e00374f8863da58eef32e0709
treeaf1e22ee84e67515a350ab491c1075d557a430b2
parentf62720269db5299b8779780476c533fba00b354a
management: preserve wait_for_push field when asking for user/pass

With the introduction of the wait_for_push field in the auth_user_pass
structure, we have to make sure that such field is not accidentally
erased when the management asks the user for user/pass.

Erasing such field would mess up the logic introduced by
("Ignore auth-nocache for auth-user-pass if auth-token is pushed").

Thanks to David Sommerseth for the preliminary analysis and debugging.

Reported-by: Steven Haigh <netwiz@crc.id.au>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Tested-by: Steven Haigh <netwiz@crc.id.au>
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: <20170707140108.31612-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15015.html
Signed-off-by: David Sommerseth <davids@openvpn.net>
(cherry picked from commit 3322c558fa742cb823fa919f682486973abc4f8e)
src/openvpn/manage.c