libfreerdp: settings: call key_clone in freerdp_settings_copy

This commit is contained in:
kubistika 2019-07-16 13:27:11 +03:00 committed by akallabeth
parent 8acea82288
commit 0c35442843

View File

@ -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;