mirror of https://github.com/python/cpython.git
Initialize adlist variable in getrouteaddr(), so an illegal address
doesn't cause a traceback.
This commit is contained in:
parent
9bdc436aaa
commit
9e43adbe78
|
@ -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…
Reference in New Issue