[server,proxy] fix unchecked return values

This commit is contained in:
akallabeth 2024-09-17 11:57:50 +02:00
parent 84c7fbe922
commit 328b7433a4
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -158,13 +158,23 @@ static BOOL pf_server_get_target_info(rdpContext* context, rdpSettings* settings
}
if (config->TargetUser)
freerdp_settings_set_string(settings, FreeRDP_Username, config->TargetUser);
{
if (!freerdp_settings_set_string(settings, FreeRDP_Username, config->TargetUser))
return FALSE;
}
if (config->TargetDomain)
freerdp_settings_set_string(settings, FreeRDP_Domain, config->TargetDomain);
{
if (!freerdp_settings_set_string(settings, FreeRDP_Domain, config->TargetDomain))
return FALSE;
}
if (config->TargetPassword)
freerdp_settings_set_string(settings, FreeRDP_Password, config->TargetPassword);
{
if (!freerdp_settings_set_string(settings, FreeRDP_Password,
config->TargetPassword))
return FALSE;
}
return TRUE;
}