25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-24 17:29:28 +01:00

Return invalid-mechanism when a mechanism isn't supported instead of

no-mechanism, which wasn't standard-compliant.

PR:		EJABP-1

SVN Revision: 1838
This commit is contained in:
Jean-Sébastien Pédron 2009-01-21 13:07:55 +00:00
parent 8a413018c2
commit cdbb000638
2 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,9 @@
* src/acl.erl (match_acl/3): Use string() version of
User/Server/Resource to match an ACL.
* src/cyrsasl.erl: Return invalid-mechanism when a mechanism isn't
supported instead of no-mechanism, which wasn't standard-compliant.
2009-01-19 Pablo Polvorin <pablo.polvorin@process-one.net>
* src/cyrsasl_digest.erl: Typo (prolists -> proplists).

View File

@ -133,10 +133,10 @@ server_start(State, Mech, ClientIn) ->
mech_state = MechState},
ClientIn);
_ ->
{error, 'no-mechanism'}
{error, 'invalid-mechanism'}
end;
false ->
{error, 'no-mechanism'}
{error, 'invalid-mechanism'}
end.
server_step(State, ClientIn) ->