mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Initialize adlist variable in getrouteaddr(), so an illegal address
doesn't cause a traceback.
This commit is contained in:
		
							parent
							
								
									9bdc436aaa
								
							
						
					
					
						commit
						9e43adbe78
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -450,6 +450,7 @@ def getrouteaddr(self):
 | 
			
		|||
        expectroute = 0
 | 
			
		||||
        self.pos = self.pos + 1
 | 
			
		||||
        self.gotonext()
 | 
			
		||||
        adlist = None
 | 
			
		||||
        while self.pos < len(self.field):
 | 
			
		||||
            if expectroute:
 | 
			
		||||
                self.getdomain()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue