... and ignore blank network passwords
This commit is contained in:
		
							parent
							
								
									6e049d5975
								
							
						
					
					
						commit
						7337007fe2
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue