Fix #7834: Check if optional argument value is present

This commit is contained in:
Armin Novak 2022-04-27 17:46:31 +02:00 committed by akallabeth
parent 1d86b2064f
commit ad20e431cc

View File

@ -3515,6 +3515,7 @@ int freerdp_client_settings_parse_command_line_arguments(rdpSettings* settings,
arg = CommandLineFindArgumentA(largs, "smartcard-logon");
if (arg->Flags & COMMAND_LINE_ARGUMENT_PRESENT)
{
if (arg->Flags & COMMAND_LINE_VALUE_PRESENT)
FillMemory(arg->Value, strlen(arg->Value), '*');
}