Don't use SASL on an unknown network
https://bugzilla.redhat.com/show_bug.cgi?id=1262763
This commit is contained in:
		
							parent
							
								
									dbad9285b8
								
							
						
					
					
						commit
						9c5f577002
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -3413,8 +3413,9 @@ cmd_server (struct session *sess, char *tbuf, char *word[], char *word_eol[])
 | 
			
		|||
			safe_strcpy (serv->password, net->pass, sizeof (serv->password));
 | 
			
		||||
			serv->loginmethod = net->logintype;
 | 
			
		||||
		}
 | 
			
		||||
		else /* Otherwise ensure no password is sent */
 | 
			
		||||
		else /* Otherwise ensure no password is sent or SASL started */
 | 
			
		||||
		{
 | 
			
		||||
			serv->loginmethod = LOGIN_DEFAULT;
 | 
			
		||||
			serv->password[0] = 0;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue