25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-06 16:42:56 +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] ->
xml:get_tag_attr_s("xmlns", NonErrorEl);
_ ->
invalid
""
end,
FilteredEls};
_ ->
{invalid, []}
{"", []}
end,
if XMLNS == "", Class == request ->
invalid;
XMLNS == invalid ->
invalid;
true ->
#iq{id = ID,
type = Type1,