arguments was not defined if they weren't provided (sasl)

This commit is contained in:
jesopo 2019-02-06 11:22:13 +00:00
parent 0004a8a59c
commit 3e54542b6a

View file

@ -3,9 +3,7 @@ from src import ModuleManager, utils
from . import scram from . import scram
def _validate(self, s): def _validate(self, s):
mechanism = s mechanism, _, arguments = s.partition(" ")
if " " in s:
mechanism, arguments = s.split(" ", 1)
return {"mechanism": mechanism, "args": arguments} return {"mechanism": mechanism, "args": arguments}
def _scram_nonce(): def _scram_nonce():