diff options
author | llyzs <llyzs.vic@gmail.com> | 2011-02-28 18:54:25 +0300 |
---|---|---|
committer | Vic Lee (llyzs) <llyzs@b6cfa94a-2857-405c-b0d6-536ef9fc39e1> | 2011-02-28 18:54:25 +0300 |
commit | d4664e3440219afbd3fa57372e2281a0deba4b7a (patch) | |
tree | 01ee7e7b64bcbb3e0a3b1b087f4da9fa3766860f | |
parent | 7c6f54415842e643a0fe94aef3be0bbeeb3f6c34 (diff) |
SSH: fix a segfault in case server address is not given.
-rw-r--r-- | remmina/src/remminapublic.c | 2 | ||||
-rw-r--r-- | remmina/src/remminapublic.h | 2 | ||||
-rw-r--r-- | remmina/src/remminassh.c | 3 |
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 { |