From 1929e49d4407f275e470d2fe8cffb9b9d84ff010 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 23 Nov 2018 18:30:14 +0300 Subject: Jabber: fix for sudden protocol disconnection when Miranda receives inconsistent stanza --- protocols/JabberG/src/jabber_thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index 3246229ff4..dc24c999bc 100755 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -1954,7 +1954,7 @@ void CJabberProto::OnProcessIq(HXML node) } } else if ((!mir_wstrcmp(type, L"get") || !mir_wstrcmp(type, L"set"))) { - XmlNodeIq iq(L"error", id, XmlGetAttrValue(node, L"from")); + XmlNodeIq iq(L"error", XmlGetAttrValue(node, L"id"), XmlGetAttrValue(node, L"from")); HXML pFirstChild = XmlGetChild(node, 0); if (pFirstChild) -- cgit v1.2.3