]> granicus.if.org Git - ejabberd/commitdiff
Handle Tigase's unexpected version=1.0 when ejabberd doesn't announce it (EJAB-1379)
authorBadlop <badlop@process-one.net>
Tue, 11 Jan 2011 15:22:22 +0000 (16:22 +0100)
committerBadlop <badlop@process-one.net>
Mon, 31 Jan 2011 18:43:28 +0000 (19:43 +0100)
src/ejabberd_s2s_out.erl

index b07c9dcd39ca1c631195546fb255fd10456713bf..b9845e4fe4b58bdf81841d1fbfaff57ff3afbf67 100644 (file)
@@ -316,6 +316,10 @@ wait_for_stream({xmlstreamstart, _Name, Attrs}, StateData) ->
        {"jabber:server", "jabber:server:dialback", true} when
        StateData#state.use_v10 ->
            {next_state, wait_for_features, StateData, ?FSMTIMEOUT};
+       %% Clause added to handle Tigase's workaround for an old ejabberd bug:
+       {"jabber:server", "jabber:server:dialback", true} when
+       not StateData#state.use_v10 ->
+           send_db_request(StateData);
        {"jabber:server", "", true} when StateData#state.use_v10 ->
            {next_state, wait_for_features, StateData#state{db_enabled = false}, ?FSMTIMEOUT};
        {NSProvided, DB, _} ->