[core,settings] do not check for NULL

TargetNet* values might be NULL on copy, do not assert them.
This commit is contained in:
akallabeth
2025-09-15 15:14:22 +02:00
parent 86e5ff550f
commit 28527513b0

View File

@@ -1401,8 +1401,6 @@ static BOOL freerdp_settings_int_buffer_copy(rdpSettings* _settings, const rdpSe
freerdp_settings_get_pointer_array(settings, FreeRDP_TargetNetAddresses, i);
const UINT32* port =
freerdp_settings_get_pointer_array(settings, FreeRDP_TargetNetPorts, i);
WINPR_ASSERT(address);
WINPR_ASSERT(port);
if (!freerdp_settings_set_pointer_array(_settings, FreeRDP_TargetNetAddresses, i, address))
goto out_fail;