summary refs log tree commit diff stats
path: root/src/common/outbound.c
diff options
context:
space:
mode:
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;