... and ignore blank network passwords
This commit is contained in:
parent
6e049d5975
commit
7337007fe2
@ -3395,7 +3395,7 @@ cmd_server (struct session *sess, char *tbuf, char *word[], char *word_eol[])
|
|||||||
{
|
{
|
||||||
/* If part of a known network, login like normal */
|
/* If part of a known network, login like normal */
|
||||||
net = servlist_net_find_from_server (server_name);
|
net = servlist_net_find_from_server (server_name);
|
||||||
if (net)
|
if (net && net->pass && *net->pass)
|
||||||
{
|
{
|
||||||
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user