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:
parent
d9e345a4d8
commit
35bcadde7a
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user