Skip to content

Commit

Permalink
Fix charset handling for --key-password on command line
Browse files Browse the repository at this point in the history
It was always converting to UTF-8 for input from the terminal; there
was a plausible reason for using the legacy charset as-is but it's
better to be consistent.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
dwmw2 committed May 25, 2017
1 parent d8b283f commit e252034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Expand Up @@ -1307,7 +1307,7 @@ int main(int argc, char **argv)
}
break;
case 'p':
vpninfo->cert_password = strdup(config_arg);
vpninfo->cert_password = dup_config_arg();
break;
case 'P':
proxy = keep_config_arg();
Expand Down

0 comments on commit e252034

Please sign in to comment.