diff options
author | louiz’ <louiz@louiz.org> | 2018-02-13 03:39:13 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2018-02-13 03:39:13 +0100 |
commit | 50d3c4a0b20a4fde582d186e4c9a2226755b1a04 (patch) | |
tree | 0ce0a21043205dd513384e7dc8c9f3dc377a05b8 | |
parent | fd7c365288b9c4db1d441b553d42b26e81715b36 (diff) | |
download | biboumi-50d3c4a0b20a4fde582d186e4c9a2226755b1a04.tar.gz biboumi-50d3c4a0b20a4fde582d186e4c9a2226755b1a04.tar.bz2 biboumi-50d3c4a0b20a4fde582d186e4c9a2226755b1a04.tar.xz biboumi-50d3c4a0b20a4fde582d186e4c9a2226755b1a04.zip |
Do not forget an early return, to return the correct item-not-found error
-rw-r--r-- | src/xmpp/biboumi_component.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp index 405ac15..75a55e6 100644 --- a/src/xmpp/biboumi_component.cpp +++ b/src/xmpp/biboumi_component.cpp @@ -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))) |