diff options
author | Badlop <badlop@process-one.net> | 2011-09-05 23:21:38 +0200 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2011-09-05 23:21:38 +0200 |
commit | 20f3fc96c3435b272d87c1c92bda5ac58ef57696 (patch) | |
tree | ddbc305c95c04096c47e4572bbc808288de9547c /src | |
parent | Fix typo in the Guide about user_regexp (diff) |
Fix SCRAM to support attributes which value has only one character
Diffstat (limited to 'src')
-rw-r--r-- | src/cyrsasl_scram.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cyrsasl_scram.erl b/src/cyrsasl_scram.erl index 2cd146353..002d6e446 100644 --- a/src/cyrsasl_scram.erl +++ b/src/cyrsasl_scram.erl @@ -137,7 +137,7 @@ mech_step(#state{step = 4} = State, ClientIn) -> parse_attribute(Attribute) -> AttributeLen = string:len(Attribute), if - AttributeLen > 3 -> + AttributeLen >= 3 -> SecondChar = lists:nth(2, Attribute), case is_alpha(lists:nth(1, Attribute)) of true -> |