don't get far in to attempting sasl when we haven't got it configured

This commit is contained in:
jesopo 2019-11-08 13:34:05 +00:00
parent e26d769b7b
commit f2a13f9015

View file

@ -47,6 +47,9 @@ class Module(ModuleManager.BaseModule):
def _mech_match(self, server, server_mechanisms):
our_sasl = server.get_setting("sasl", None)
if not our_sasl:
return None
our_mechanism = our_sasl["mechanism"].upper()
if not server_mechanisms and our_mechanism in ALL_MECHANISMS: