25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

* src/ejabberd_c2s.erl: Bugfix

SVN Revision: 691
This commit is contained in:
Alexey Shchepin 2006-12-08 20:34:34 +00:00
parent e9047f4b31
commit bb2ffb8765
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2006-12-08 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_c2s.erl: Bugfix
2006-12-05 Alexey Shchepin <alexey@sevcom.net>
* src/mod_roster_odbc.erl: Better error handling

View File

@ -312,6 +312,14 @@ wait_for_stream({xmlstreamstart, _Name, Attrs}, StateData) ->
{stop, normal, StateData}
end;
wait_for_stream({xmlstreamelement, _}, StateData) ->
send_text(StateData, ?INVALID_XML_ERR ++ ?STREAM_TRAILER),
{stop, normal, StateData};
wait_for_stream({xmlstreamend, _}, StateData) ->
send_text(StateData, ?INVALID_XML_ERR ++ ?STREAM_TRAILER),
{stop, normal, StateData};
wait_for_stream({xmlstreamerror, _}, StateData) ->
Header = io_lib:format(?STREAM_HEADER,
["none", ?MYNAME, " version='1.0'", ""]),