summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2015-09-14 09:33:06 -0400
committerPatrick Griffis <tingping@tingping.se>2015-09-14 09:33:06 -0400
commit9c5f5770023b2dc07ffaa2f6cdcab365b6306894 (patch)
tree1d365f21de71f94064ae36bcfc9d88e489714d0a /src
parentdbad9285b8a4267cc7e7e3c3fd84699ed406a13a (diff)
Don't use SASL on an unknown network
https://bugzilla.redhat.com/show_bug.cgi?id=1262763
Diffstat (limited to 'src')
-rw-r--r--src/common/outbound.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c
index ac274a87..a4611927 100644
--- a/src/common/outbound.c
+++ b/src/common/outbound.c
@@ -3413,8 +3413,9 @@ cmd_server (struct session *sess, char *tbuf, char *word[], char *word_eol[])
 			safe_strcpy (serv->password, net->pass, sizeof (serv->password));
 			serv->loginmethod = net->logintype;
 		}
-		else /* Otherwise ensure no password is sent */
+		else /* Otherwise ensure no password is sent or SASL started */
 		{
+			serv->loginmethod = LOGIN_DEFAULT;
 			serv->password[0] = 0;
 		}
 	}