Commit fcb2681b authored by louiz’'s avatar louiz’

Log a warning when we receive an iq without a from

parent 7d2a2dc8
......@@ -285,8 +285,10 @@ void BiboumiComponent::handle_iq(const Stanza& stanza)
std::string to_str = stanza.get_tag("to");
std::string type = stanza.get_tag("type");
if (from.empty())
if (from.empty()) {
log_warning("Received an iq without a 'from'. Ignoring.");
if (id.empty() || to_str.empty() || type.empty())
this->send_stanza_error("iq", from, this->served_hostname, id,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment