Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FreeRDP/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntenore Gatta (tmow) <antenore@simbiosi.org>2022-03-08 13:58:11 +0300
committerAntenore Gatta (tmow) <antenore@simbiosi.org>2022-03-10 17:01:04 +0300
commit257c0df911c5d947e50809311a9d0db66013fdb7 (patch)
treed85f9d77811efe001ffabbf9bc5a3da55a0676fa /plugins
parent1869d0680f4338899d5f9604e7c4a93c32a0fab5 (diff)
Get the right value for FreeRDP_AutoReconnectMaxRetries
Diffstat (limited to 'plugins')
-rw-r--r--plugins/rdp/rdp_plugin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/rdp/rdp_plugin.c b/plugins/rdp/rdp_plugin.c
index 54b036e9a..a08f68b33 100644
--- a/plugins/rdp/rdp_plugin.c
+++ b/plugins/rdp/rdp_plugin.c
@@ -2015,7 +2015,9 @@ static gboolean remmina_rdp_main(RemminaProtocolWidget *gp)
remmina_plugin_service->protocol_plugin_set_height(gp, freerdp_settings_get_uint32(rfi->settings, FreeRDP_DesktopHeight));
}
- if (remmina_plugin_service->file_get_int(remminafile, "sharesmartcard", FALSE)) {
+ const gchar *sn = remmina_plugin_service->file_get_string(remminafile, "smartcardname");
+ if (remmina_plugin_service->file_get_int(remminafile, "sharesmartcard", FALSE) ||
+ (sn != NULL && sn[0] != '\0')) {
RDPDR_SMARTCARD *smartcard;
smartcard = (RDPDR_SMARTCARD *)calloc(1, sizeof(RDPDR_SMARTCARD));
@@ -2031,7 +2033,6 @@ static gboolean remmina_rdp_main(RemminaProtocolWidget *gp)
freerdp_settings_set_bool(rfi->settings, FreeRDP_DeviceRedirection, TRUE);
- const gchar *sn = remmina_plugin_service->file_get_string(remminafile, "smartcardname");
if (sn != NULL && sn[0] != '\0')
sdev->Name = _strdup(sn);