summary refs log tree commit diff stats
path: root/src/common/outbound.c
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-05-25 20:47:16 -0300
committerTingPing <tngpng@gmail.com>2013-05-25 20:47:16 -0300
commite47dd3eb89d7eed31a7954cd3b14b16a3985eefa (patch)
treeba7ec9eb7da38846390bea1fe3175fbb34faf5dd /src/common/outbound.c
parentc9c8993b9d5b4189c9370bfa8af76da85387ff5c (diff)
Don't send previous session's password
closes #616
Diffstat (limited to 'src/common/outbound.c')
-rw-r--r--src/common/outbound.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c
index 98384929..de547ec8 100644
--- a/src/common/outbound.c
+++ b/src/common/outbound.c
@@ -3251,6 +3251,11 @@ cmd_server (struct session *sess, char *tbuf, char *word[], char *word_eol[])
 		safe_strcpy (serv->password, pass, sizeof (serv->password));
 		serv->loginmethod = LOGIN_PASS;
 	}
+	else
+	{
+		serv->password[0] = 0;
+	}
+
 #ifdef USE_OPENSSL
 	serv->use_ssl = use_ssl;
 	serv->accept_invalid_cert = TRUE;