From cbbfd921b4f1618101521e75c4608072dd349c1e Mon Sep 17 00:00:00 2001 From: Alexey Shchepin Date: Tue, 21 Jan 2014 11:54:18 +0200 Subject: [PATCH] Fix for the previous commit --- src/ejabberd_c2s.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ejabberd_c2s.erl b/src/ejabberd_c2s.erl index 5a02f98bd..c04c97933 100644 --- a/src/ejabberd_c2s.erl +++ b/src/ejabberd_c2s.erl @@ -94,7 +94,7 @@ tls_options = [], authenticated = false, jid, - user = "", server = ?MYNAME, resource = <<"">>, + user = "", server = <<"">>, resource = <<"">>, sid, pres_t = ?SETS:new(), pres_f = ?SETS:new(), @@ -293,7 +293,7 @@ wait_for_stream({xmlstreamstart, _Name, Attrs}, StateData) -> ?NS_STREAM -> Server = case StateData#state.server of - undefined -> + <<"">> -> jlib:nameprep(xml:get_attr_s(<<"to">>, Attrs)); S -> S end, -- 2.40.0