]> granicus.if.org Git - ejabberd/commitdiff
Fix for the previous commit
authorAlexey Shchepin <alexey@process-one.net>
Tue, 21 Jan 2014 09:54:18 +0000 (11:54 +0200)
committerAlexey Shchepin <alexey@process-one.net>
Tue, 21 Jan 2014 09:54:18 +0000 (11:54 +0200)
src/ejabberd_c2s.erl

index 5a02f98bd10e1105a5ce51eb2caef53b6d7cf99f..c04c97933bd86dbd0d4f3a469fe80c1e9180e2c3 100644 (file)
@@ -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,