From 75bf7aca58eb71f1be4d5518374a94213ae08e60 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Tue, 3 Apr 2018 02:25:55 +0300 Subject: protocols: jabber: crash fix https://gist.github.com/apollo2k4/955dc2bd2b8cac46ab51fa787b12329c --- protocols/JabberG/src/jabber_strm_mgmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/JabberG/src/jabber_strm_mgmt.cpp b/protocols/JabberG/src/jabber_strm_mgmt.cpp index f6227a803c..cf48e5610b 100755 --- a/protocols/JabberG/src/jabber_strm_mgmt.cpp +++ b/protocols/JabberG/src/jabber_strm_mgmt.cpp @@ -106,7 +106,7 @@ void strm_mgmt::OnProcessSMa(HXML node) void strm_mgmt::ResendNodes(uint32_t size) { - if (size > NodeCache.size()) //TODO: size should not be larger than NodeCache.size(), another bug + if (size > NodeCache.size()) { const size_t diff = NodeCache.size() - size; if (diff) -- cgit v1.2.3