Passing a password to the /server command was ignored because the login method

was not set.
This commit is contained in:
Diogo Sousa 2013-05-23 13:22:34 +01:00
parent fcdd85ae5e
commit d3ce4f64f6
1 changed files with 1 additions and 0 deletions

View File

@ -3249,6 +3249,7 @@ cmd_server (struct session *sess, char *tbuf, char *word[], char *word_eol[])
if (*pass)
{
safe_strcpy (serv->password, pass, sizeof (serv->password));
serv->loginmethod = LOGIN_PASS;
}
#ifdef USE_OPENSSL
serv->use_ssl = use_ssl;