Don't use SASL on an unknown network
https://bugzilla.redhat.com/show_bug.cgi?id=1262763
This commit is contained in:
parent
dbad9285b8
commit
9c5f577002
|
@ -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));
|
safe_strcpy (serv->password, net->pass, sizeof (serv->password));
|
||||||
serv->loginmethod = net->logintype;
|
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;
|
serv->password[0] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue