From 50d3c4a0b20a4fde582d186e4c9a2226755b1a04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Tue, 13 Feb 2018 03:39:13 +0100 Subject: Do not forget an early return, to return the correct item-not-found error --- src/xmpp/biboumi_component.cpp | 1 + 1 file changed, 1 insertion(+) 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))) -- cgit v1.2.3