summary refs log tree commit diff stats
path: root/src/common/outbound.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-01-11 16:27:34 -0500
committerTingPing <tingping@tingping.se>2014-01-11 16:27:34 -0500
commit7337007fe2a9b633b42dcc935b8eb4244335827a (patch)
tree32a59c3e54c125b42f36e575565ab74162c5b9ca /src/common/outbound.c
parent6e049d59752ff5b7b7d281a9dff2c6df0b3195e5 (diff)
... and ignore blank network passwords
Diffstat (limited to 'src/common/outbound.c')
-rw-r--r--src/common/outbound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c
index 5047bfcd..7910eed4 100644
--- a/src/common/outbound.c
+++ b/src/common/outbound.c
@@ -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 */
 		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));
 			serv->loginmethod = net->logintype;