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

avoid 'invalid' value in #iq{} record

SVN Revision: 2954
This commit is contained in:
Evgeniy Khramtsov 2010-02-02 13:41:34 +00:00
parent d9e345a4d8
commit 35bcadde7a

View File

@ -407,16 +407,14 @@ iq_info_internal({xmlelement, Name, Attrs, Els}, Filter) when Name == "iq" ->
[NonErrorEl] -> [NonErrorEl] ->
xml:get_tag_attr_s("xmlns", NonErrorEl); xml:get_tag_attr_s("xmlns", NonErrorEl);
_ -> _ ->
invalid ""
end, end,
FilteredEls}; FilteredEls};
_ -> _ ->
{invalid, []} {"", []}
end, end,
if XMLNS == "", Class == request -> if XMLNS == "", Class == request ->
invalid; invalid;
XMLNS == invalid ->
invalid;
true -> true ->
#iq{id = ID, #iq{id = ID,
type = Type1, type = Type1,