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:
authorEspen Tveit <espen@tveit.io>2020-07-23 02:41:37 +0300
committerAntenore Gatta <antenore@simbiosi.org>2020-07-23 02:41:37 +0300
commit29c5dc10a2ec8d00b9b788dd8f15c31e2f825484 (patch)
tree2aadcfa4847ac72a99bb777cef5098488a7bb0bf /src/remmina_ssh_plugin.c
parent3ae30e73a184cb3d175c060323e91ec95bc4ae43 (diff)
Make local variables reusable (not prefixed with type). Format code using uncrustify. Add indication that URI may be used in remmina --help. Add some examples to man page.
Diffstat (limited to 'src/remmina_ssh_plugin.c')
-rw-r--r--src/remmina_ssh_plugin.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/remmina_ssh_plugin.c b/src/remmina_ssh_plugin.c
index 061641fee..de533a20a 100644
--- a/src/remmina_ssh_plugin.c
+++ b/src/remmina_ssh_plugin.c
@@ -277,6 +277,16 @@ remmina_plugin_ssh_main_thread(gpointer data)
ret = remmina_ssh_auth_gui(ssh, gp, remminafile);
if (ret != REMMINA_SSH_AUTH_SUCCESS) {
+ if(ret == REMMINA_SSH_AUTH_RECONNECT) {
+ if (ssh->session) {
+ ssh_disconnect(ssh->session);
+ ssh_free(ssh->session);
+ ssh->session = NULL;
+ }
+ g_free(ssh->callback);
+ continue;
+ }
+
if (ret != REMMINA_SSH_AUTH_USERCANCEL)
remmina_plugin_service->protocol_plugin_set_error(gp, "%s", ssh->error);
break;