Do not forget an early return, to return the correct item-not-found error

This commit is contained in:
louiz’
2018-02-13 03:39:13 +01:00
parent fd7c365288
commit 50d3c4a0b2
+1
View File
@@ -472,6 +472,7 @@ void BiboumiComponent::handle_iq(const Stanza& stanza)
stanza_error.disable();
} catch (const Database::RecordNotFound& exc) {
error_name = "item-not-found";
return;
}
}
else if ((query = stanza.get_child("query", MUC_OWNER_NS)))