[core,proxy] fix missing return check

This commit is contained in:
Armin Novak 2024-06-05 15:19:12 +02:00
parent b9e434be48
commit 036228a294
No known key found for this signature in database
GPG Key ID: 2CF4A2D2D3D72105

View File

@ -306,7 +306,8 @@ void proxy_read_environment(rdpSettings* settings, char* envname)
WLog_INFO(TAG, "deactivating proxy: %s [%s=%s]",
freerdp_settings_get_string(settings, FreeRDP_ServerHostname), envname,
env);
freerdp_settings_set_uint32(settings, FreeRDP_ProxyType, PROXY_TYPE_NONE);
if (!freerdp_settings_set_uint32(settings, FreeRDP_ProxyType, PROXY_TYPE_NONE))
WLog_WARN(TAG, "failed to set FreeRDP_ProxyType=PROXY_TYPE_NONE");
}
}
else