]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fixup: prompting password from management
authorSelva Nair <selva.nair@gmail.com>
Fri, 24 Apr 2026 16:18:33 +0000 (18:18 +0200)
committerGert Doering <gert@greenie.muc.de>
Sat, 25 Apr 2026 17:30:50 +0000 (19:30 +0200)
Commit b450414 added logic for reading password from management
when not in file or inline, but it was made conditional on
`response_from_stdin` which is always true! Fix by explicitly
checking for `password_from_stdin`.

Github: fixes OpenVPN/openvpn#1021

Change-Id: I4d46c3672691b159cbd98a17020c4f30782bc202
Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1638
Message-Id: <20260424161840.5767-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg36739.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/misc.c

index 979293ffe7626b17b0c047746a3850414fc5d60e..10bfc35111e76103f55f2805fe1bb9fcea6555fb 100644 (file)
@@ -336,6 +336,7 @@ get_user_pass_cr(struct user_pass *up, const char *auth_file, const char *prefix
              */
             if (management && (flags & GET_USER_PASS_MANAGEMENT)
                 && management_query_user_pass_enabled(management)
+                && password_from_stdin
                 && !(flags & GET_USER_PASS_USERNAME_ONLY))
             {
                 msg(D_LOW,