]> granicus.if.org Git - ejabberd/commitdiff
Fix SCRAM to support attributes which value has only one character
authorBadlop <badlop@process-one.net>
Mon, 5 Sep 2011 21:21:38 +0000 (23:21 +0200)
committerBadlop <badlop@process-one.net>
Mon, 5 Sep 2011 21:37:57 +0000 (23:37 +0200)
src/cyrsasl_scram.erl

index d1c218be146aef41cd1f671676750c3c6819bb82..6dbf810b9b7ff736d7d74df20a36525180f12558 100644 (file)
@@ -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 ->