From: Alexey Shchepin Date: Tue, 21 Jan 2014 09:54:18 +0000 (+0200) Subject: Fix for the previous commit X-Git-Tag: 14.05~74^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cbbfd921b4f1618101521e75c4608072dd349c1e;p=ejabberd Fix for the previous commit --- 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,