From: Guido van Rossum Date: Tue, 3 Mar 1998 16:17:52 +0000 (+0000) Subject: Initialize adlist variable in getrouteaddr(), so an illegal address X-Git-Tag: v1.5.1~539 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e43adbe7834f9b4143f7209edc0061c68455f56;p=python 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 967a85efd2..8ddac67962 100644 --- a/Lib/rfc822.py +++ b/Lib/rfc822.py @@ -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()