From 8150d61a086cdf72b5aadf585c05b7db5ce6b511 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Tue, 27 Mar 2018 04:28:35 +0300 Subject: protocols: jabber: omemo - fix possible crash on early session negotiation --- protocols/JabberG/src/jabber_thread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols/JabberG/src/jabber_thread.cpp') diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index c274d62ed1..e75d3ec81f 100755 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -1321,7 +1321,8 @@ void CJabberProto::OnProcessMessage(HXML node, ThreadData *info) const wchar_t *jid = xmlGetAttrValue(node, L"from"); if (jid) { - OmemoHandleMessage(xNode, (wchar_t*)jid, msgTime); + if (!OmemoHandleMessage(xNode, (wchar_t*)jid, msgTime)) + OmemoPutMessageToIncommingQueue(xNode, (wchar_t*)jid, msgTime); continue; } } -- cgit v1.2.3