Don't use SASL on an unknown network

https://bugzilla.redhat.com/show_bug.cgi?id=1262763
This commit is contained in:
Patrick Griffis 2015-09-14 09:33:06 -04:00
parent dbad9285b8
commit 9c5f577002

View File

@ -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;
}
}