From da9689e7e9605b06cfc516d1ae51264fd7f90768 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sun, 21 Feb 2016 18:16:48 +0000 Subject: Jabber: Fixed sha-1 check (fixes #1175) git-svn-id: http://svn.miranda-ng.org/main/trunk@16321 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_byte.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/JabberG/src/jabber_byte.cpp b/protocols/JabberG/src/jabber_byte.cpp index e70684225a..1861e5240b 100644 --- a/protocols/JabberG/src/jabber_byte.cpp +++ b/protocols/JabberG/src/jabber_byte.cpp @@ -375,7 +375,7 @@ int CJabberProto::ByteSendParse(HANDLE hConn, JABBER_BYTE_TRANSFER *jbt, char* b for (i = 0; i < 40 && buffer[i + 5] == buf[i]; i++); memset(data, 0, sizeof(data)); - data[1] = (i >= 20) ? 0 : 2; + data[1] = (i >= 40) ? 0 : 2; data[0] = 5; data[3] = 1; Netlib_Send(hConn, (char*)data, 10, 0); @@ -386,7 +386,7 @@ int CJabberProto::ByteSendParse(HANDLE hConn, JABBER_BYTE_TRANSFER *jbt, char* b if (jbt->state == JBT_ERROR) break; - if (i >= 20 && (this->*jbt->pfnSend)(hConn, jbt->ft) == TRUE) + if (i >= 40 && (this->*jbt->pfnSend)(hConn, jbt->ft) == TRUE) jbt->state = JBT_DONE; else jbt->state = JBT_ERROR; -- cgit v1.2.3