Commit 9e43adbe authored by Guido van Rossum's avatar Guido van Rossum

Initialize adlist variable in getrouteaddr(), so an illegal address

doesn't cause a traceback.
parent 9bdc436a
...@@ -450,6 +450,7 @@ class AddrlistClass: ...@@ -450,6 +450,7 @@ class AddrlistClass:
expectroute = 0 expectroute = 0
self.pos = self.pos + 1 self.pos = self.pos + 1
self.gotonext() self.gotonext()
adlist = None
while self.pos < len(self.field): while self.pos < len(self.field):
if expectroute: if expectroute:
self.getdomain() self.getdomain()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment