aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Köhler <andreas.koehler@1und1.de>2010-11-08 23:09:14 +0100
committerBadlop <badlop@process-one.net>2010-11-17 12:57:05 +0100
commit6eeb355a22ea0baf150e8f62e0c457431be7f9f4 (patch)
treeeeeccb4759aa7ade7db83145bb72f3e76c2aa05b
parentDo not start mod_proxy65 if it is unable to bind an address (EJAB-1336) (diff)
Use LFrom and LTo consistently in ejabberd_s2s_in:stream_established/2 (EJAB-1342)
-rw-r--r--src/ejabberd_s2s_in.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ejabberd_s2s_in.erl b/src/ejabberd_s2s_in.erl
index 56086c9ef..1bd1b6898 100644
--- a/src/ejabberd_s2s_in.erl
+++ b/src/ejabberd_s2s_in.erl
@@ -364,11 +364,11 @@ stream_established({xmlstreamelement, El}, StateData) ->
LFrom = jlib:nameprep(From),
%% Checks if the from domain is allowed and if the to
%% domain is handled by this server:
- case {ejabberd_s2s:allow_host(To, From),
+ case {ejabberd_s2s:allow_host(LTo, LFrom),
lists:member(LTo, ejabberd_router:dirty_get_all_domains())} of
{true, true} ->
- ejabberd_s2s_out:terminate_if_waiting_delay(To, From),
- ejabberd_s2s_out:start(To, From,
+ ejabberd_s2s_out:terminate_if_waiting_delay(LTo, LFrom),
+ ejabberd_s2s_out:start(LTo, LFrom,
{verify, self(),
Key, StateData#state.streamid}),
Conns = ?DICT:store({LFrom, LTo}, wait_for_verification,