aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2011-09-05 23:21:38 +0200
committerBadlop <badlop@process-one.net>2011-09-05 23:37:57 +0200
commitd6d58d13f7b16b0b658a125479e8790c58f1f99e (patch)
tree108f95fe3d6203016adf65743113cdad492e640c /src
parentFix 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.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cyrsasl_scram.erl b/src/cyrsasl_scram.erl
index d1c218be1..6dbf810b9 100644
--- a/src/cyrsasl_scram.erl
+++ b/src/cyrsasl_scram.erl
@@ -138,7 +138,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 ->