SASL: Fix traceback on non-hashing mechanism using channel binding.

This commit is contained in:
Emmanuel Gil Peyrot 2016-10-27 06:26:39 +01:00
parent 7ddd37be29
commit 63d245ac48

View file

@ -75,7 +75,7 @@ def sasl_mech(score):
MECH_SEC_SCORES[mech.name] = mech.score
if mech.channel_binding:
MECHANISMS[mech.name + '-PLUS'] = mech
MECH_SEC_SCORES[name] = mech.score + 10
MECH_SEC_SCORES[mech.name] = mech.score + 10
return mech
return register