... and ignore blank network passwords

This commit is contained in:
TingPing 2014-01-11 16:27:34 -05:00
parent 6e049d5975
commit 7337007fe2

View File

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