diff --git a/src/d_netcmd.c b/src/d_netcmd.c
index 876a38523315eecaada629c919d1b4e43de162b9..727d5eff47b6b90e5b5175021693d032527b75f5 100644
--- a/src/d_netcmd.c
+++ b/src/d_netcmd.c
@@ -2731,7 +2731,10 @@ static void Got_Login(UINT8 **cp, INT32 playernum)
 	READMEM(*cp, sentmd5, 16);
 
 	if (!adminpasswordset)
+	{
 		CONS_Printf(M_GetText("Password from %s failed (no password set).\n"), player_names[playernum]);
+		return;
+	}
 
 	if (client)
 		return;