From 20f3fc96c3435b272d87c1c92bda5ac58ef57696 Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 5 Sep 2011 23:21:38 +0200 Subject: [PATCH] Fix SCRAM to support attributes which value has only one character --- src/cyrsasl_scram.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ->