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:
authorMathias Winterhalter <info@toolsdevler.net>2022-07-21 20:44:40 +0300
committerMathias Winterhalter <info@toolsdevler.net>2022-07-21 20:44:40 +0300
commit05aebc8505370b664e8467172b8498f8306c46f2 (patch)
treea7856db8a5e047fda1c8ee413f71789803fc3313
parentf95bdc8b0d55be4508829b493ea6449288339271 (diff)
Fix missing null checks causing signal 11fix_issue_2762
-rw-r--r--plugins/vnc/vnc_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/vnc/vnc_plugin.c b/plugins/vnc/vnc_plugin.c
index 9307f0b3b..f98eea56c 100644
--- a/plugins/vnc/vnc_plugin.c
+++ b/plugins/vnc/vnc_plugin.c
@@ -1269,7 +1269,7 @@ static gboolean remmina_plugin_vnc_main(RemminaProtocolWidget *gp)
g_free(host);
host = NULL;
- if (strstr(cl->serverHost, "unix://") != cl->serverHost && remmina_plugin_service->file_get_string(remminafile, "proxy")) {
+ if (cl->serverHost && strstr(cl->serverHost, "unix://") != cl->serverHost && remmina_plugin_service->file_get_string(remminafile, "proxy")) {
remmina_plugin_service->get_server_port(
remmina_plugin_service->file_get_string(remminafile, "server"),
VNC_DEFAULT_PORT,
@@ -1712,7 +1712,7 @@ static gboolean remmina_plugin_vnc_open_connection(RemminaProtocolWidget *gp)
raw_server = remmina_plugin_service->file_get_string(remminafile, "server");
- if (strstr(raw_server, "unix://") == raw_server) {
+ if (raw_server && strstr(raw_server, "unix://") == raw_server) {
REMMINA_PLUGIN_AUDIT(_("Connected to %s via VNC"), server);
} else {
remmina_plugin_service->get_server_port(raw_server,