diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2016-02-21 18:16:48 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2016-02-21 18:16:48 +0000 |
commit | da9689e7e9605b06cfc516d1ae51264fd7f90768 (patch) | |
tree | 9e8d4bce5bc4698394bd009d6fc5f6977db090e6 | |
parent | e8b3404efb2e546cab08c9acb56702aade4c75d9 (diff) |
Jabber: Fixed sha-1 check (fixes #1175)
git-svn-id: http://svn.miranda-ng.org/main/trunk@16321 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/JabberG/src/jabber_byte.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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;
|