Skip to content

Commit 069f82b

Browse files
committed
xmpp_sasl_fast: Handle missing SASL2 user-agent ID
During FAST authentication, it's mandatory for clients to provide a SASL2 <user-agent> ID. Don't crash if it's missing. Thanks to Thilo Molitor for reporting the issue.
1 parent 73e5122 commit 069f82b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/xmpp_sasl_fast.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ format_error({Condition, Text}) ->
3434
format_error(incompatible_mechs) ->
3535
{'not-authorized', <<"Incompatible SCRAM methods">>};
3636
format_error(missing_ua) ->
37-
{'malformed', <<"Missing user-agent">>};
37+
{'malformed-request', <<"Missing user-agent">>};
3838
format_error(bad_channel_binding) ->
3939
{'not-authorized', <<"Invalid channel binding">>};
4040
format_error(parser_failed) ->

0 commit comments

Comments
 (0)