commit | 9e43adbe7834f9b4143f7209edc0061c68455f56 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Mar 03 16:17:52 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Mar 03 16:17:52 1998 +0000 |
tree | 008a6d4839ac7b8dc9ec97779bbe20cad2ba0a3b | |
parent | 9bdc436aaaca653c23e0fe301d9a61f6cd41ef79 [diff] [blame] |
Initialize adlist variable in getrouteaddr(), so an illegal address doesn't cause a traceback.
diff --git a/Lib/rfc822.py b/Lib/rfc822.py index 967a85e..8ddac67 100644 --- a/Lib/rfc822.py +++ b/Lib/rfc822.py
@@ -450,6 +450,7 @@ expectroute = 0 self.pos = self.pos + 1 self.gotonext() + adlist = None while self.pos < len(self.field): if expectroute: self.getdomain()