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

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntenore Gatta <antenore@simbiosi.org>2019-09-21 01:01:26 +0300
committerAntenore Gatta <antenore@simbiosi.org>2019-09-21 01:01:26 +0300
commit1b3837887e6b63adcb10aae16692516f1419f988 (patch)
tree7e570b8652bff74ffa264104dc6906d68a8891cc /plugins
parent0aa28f90379df891d6fd8ebf38b11ed2f0d97f55 (diff)
Remedy #1909 to stop parsing printer queues when an override has been specified
Diffstat (limited to 'plugins')
-rw-r--r--plugins/rdp/rdp_plugin.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/rdp/rdp_plugin.c b/plugins/rdp/rdp_plugin.c
index d836c3978..2e06974a1 100644
--- a/plugins/rdp/rdp_plugin.c
+++ b/plugins/rdp/rdp_plugin.c
@@ -880,6 +880,15 @@ int remmina_rdp_set_printers(void *user_data, unsigned flags, cups_dest_t *dest)
printer->DriverName = strdup(d);
g_debug("Printer DriverName set to: %s", printer->DriverName);
g_free(d);
+ } else {
+ /**
+ * When remmina_rdp_find_prdriver doesn't return a DriverName
+ * it means that we don't want to share that rpinter
+ *
+ */
+ free(printer->Name);
+ free(printer);
+ return (1);
}
} else {
/* At the moment it's NULL */