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] ->
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user