From e25203446f01ec4302c5a099eca5bf3d958663c4 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Thu, 25 May 2017 21:15:27 +0100 Subject: [PATCH] Fix charset handling for --key-password on command line 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 --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 7869f721..c127b62c 100644 --- a/main.c +++ b/main.c @@ -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();