summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-23 18:30:14 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-23 18:30:14 +0300
commit1929e49d4407f275e470d2fe8cffb9b9d84ff010 (patch)
tree7ce08dc866eb8e7b53cdd828a36341d4703f9fda /protocols
parent0859890fad590ab9be7ec10e594fe17927a7b3f8 (diff)
Jabber: fix for sudden protocol disconnection when Miranda receives inconsistent stanza
Diffstat (limited to 'protocols')
-rwxr-xr-xprotocols/JabberG/src/jabber_thread.cpp2
1 files changed, 1 insertions, 1 deletions
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)