set gssapi to false on kerberos error

* this fixes a crash when the n-th connection returns an error
	by falling back to plainauth
Signed-off-by: Christoph Höger <choeger@cs.tu-berlin.de>
This commit is contained in:
Christoph Höger 2009-06-29 10:53:07 +02:00 committed by John Goerzen
parent d1f5a28277
commit 0a221dc9c5

View File

@ -274,6 +274,7 @@ class IMAPServer:
try: try:
imapobj.authenticate('GSSAPI', self.gssauth) imapobj.authenticate('GSSAPI', self.gssauth)
except imapobj.error, val: except imapobj.error, val:
self.gssapi = False
UIBase.getglobalui().debug('imap', UIBase.getglobalui().debug('imap',
'GSSAPI Authentication failed') 'GSSAPI Authentication failed')
else: else: