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:
authorllyzs <llyzs.vic@gmail.com>2011-02-28 18:54:25 +0300
committerVic Lee (llyzs) <llyzs@b6cfa94a-2857-405c-b0d6-536ef9fc39e1>2011-02-28 18:54:25 +0300
commitd4664e3440219afbd3fa57372e2281a0deba4b7a (patch)
tree01ee7e7b64bcbb3e0a3b1b087f4da9fa3766860f /remmina
parent7c6f54415842e643a0fe94aef3be0bbeeb3f6c34 (diff)
SSH: fix a segfault in case server address is not given.
Diffstat (limited to 'remmina')
-rw-r--r--remmina/src/remminapublic.c2
-rw-r--r--remmina/src/remminapublic.h2
-rw-r--r--remmina/src/remminassh.c3
3 files changed, 4 insertions, 3 deletions
diff --git a/remmina/src/remminapublic.c b/remmina/src/remminapublic.c
index 14bde739d..74c0f3b57 100644
--- a/remmina/src/remminapublic.c
+++ b/remmina/src/remminapublic.c
@@ -1,6 +1,6 @@
/*
* Remmina - The GTK+ Remote Desktop Client
- * Copyright (C) 2009 - Vic Lee
+ * Copyright (C) 2009-2011 Vic Lee
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/remmina/src/remminapublic.h b/remmina/src/remminapublic.h
index 640761a38..29ea2ce6b 100644
--- a/remmina/src/remminapublic.h
+++ b/remmina/src/remminapublic.h
@@ -1,6 +1,6 @@
/*
* Remmina - The GTK+ Remote Desktop Client
- * Copyright (C) 2009 - Vic Lee
+ * Copyright (C) 2009-2011 Vic Lee
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/remmina/src/remminassh.c b/remmina/src/remminassh.c
index bf7cf0750..2aa37f00e 100644
--- a/remmina/src/remminassh.c
+++ b/remmina/src/remminassh.c
@@ -420,7 +420,8 @@ remmina_ssh_init_from_file (RemminaSSH *ssh, RemminaFile *remminafile)
}
else if (server == NULL)
{
- return FALSE;
+ ssh->server = g_strdup ("localhost");
+ ssh->port = 22;
}
else
{