From 5ecd62a5f740851c090abb4ef8fb6283eb7da8be Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 16 Nov 2022 14:55:52 +0100 Subject: [PATCH] [client,cmdline] Fix /enforce-tlsv1_2 parsing --- client/common/cmdline.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/common/cmdline.c b/client/common/cmdline.c index ceb8fc0d9..b1e0784b0 100644 --- a/client/common/cmdline.c +++ b/client/common/cmdline.c @@ -1799,7 +1799,7 @@ static int parse_tls_enforce(rdpSettings* settings, const char* Value) { struct map_t { - char* name; + const char* name; UINT16 version; }; const struct map_t map[] = { @@ -1862,8 +1862,8 @@ static int parse_tls_options(rdpSettings* settings, const COMMAND_LINE_ARGUMENT_ } CommandLineSwitchCase(arg, "enforce-tlsv1_2") { - WLog_WARN(TAG, "Option /enforce-tlsv1_2 is deprecated, use /tls:enforce:1_2 instead"); - rc = parse_tls_enforce(settings, arg->Value); + WLog_WARN(TAG, "Option /enforce-tlsv1_2 is deprecated, use /tls:enforce:1.2 instead"); + rc = parse_tls_enforce(settings, "1.2"); } #endif CommandLineSwitchDefault(arg)