mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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 @@ class AddrlistClass:
|
|||
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