diff --git a/src/ejabberd_c2s.erl b/src/ejabberd_c2s.erl index de80308fc..66f9db507 100644 --- a/src/ejabberd_c2s.erl +++ b/src/ejabberd_c2s.erl @@ -2938,7 +2938,7 @@ inherit_session_state(#state{user = U, server = S} = StateData, ResumeID) -> end; {term, {_WrongU, _WrongS, _R, _Time}} -> {error, <<"Previous JID doesn't match authenticated JID">>}; - error -> + _ -> {error, <<"Invalid 'previd' value">>} end.