Commit 02dfe039 authored by David Woodhouse's avatar David Woodhouse

Merge branch 'fill_in_any_password_type_field' into 'master'

command-line client should fill in any password-type field with value supplied via --passwd-on-stdin

See merge request openconnect/openconnect!6
parents d819339d b6dc8211
......@@ -1999,8 +1999,7 @@ static int process_auth_form_cb(void *_vpninfo,
empty = 0;
} else if (opt->type == OC_FORM_OPT_PASSWORD) {
if (password &&
!strncmp(opt->name, "pass", 4)) {
if (password) {
opt->_value = password;
password = NULL;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment