From 0c3544284315f9cd066fa1226c278d91bc1af25a Mon Sep 17 00:00:00 2001 From: kubistika Date: Tue, 16 Jul 2019 13:27:11 +0300 Subject: [PATCH] libfreerdp: settings: call key_clone in freerdp_settings_copy --- libfreerdp/core/settings.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libfreerdp/core/settings.c b/libfreerdp/core/settings.c index 2b02beb68..5d544e706 100644 --- a/libfreerdp/core/settings.c +++ b/libfreerdp/core/settings.c @@ -872,6 +872,14 @@ BOOL freerdp_settings_copy(rdpSettings* _settings, const rdpSettings* settings) goto out_fail; } + if (settings->RdpServerRsaKey) + { + _settings->RdpServerRsaKey = key_clone(settings->RdpServerRsaKey); + + if (!_settings->RdpServerRsaKey) + goto out_fail; + } + _settings->ChannelCount = settings->ChannelCount; _settings->ChannelDefArraySize = settings->ChannelDefArraySize;