Issue #6622: Fix 'variable referenced before assignment' bug in POP3.apop.

Thanks Vincent Legoll.
This commit is contained in:
Mark Dickinson 2009-08-06 16:06:25 +00:00
parent ba5c74329d
commit ea1158f9f3
3 changed files with 14 additions and 4 deletions

View file

@ -282,7 +282,7 @@ def apop(self, user, password):
NB: mailbox is locked by server from here to 'quit()'
"""
secret = bytes(secret, self.encoding)
secret = bytes(password, self.encoding)
m = self.timestamp.match(self.welcome)
if not m:
raise error_proto('-ERR APOP not supported by server')