pidgin: 2c9a1153: counterpart for ad057b75 in the outgoing...
khc at pidgin.im
khc at pidgin.im
Sun May 10 20:20:36 EDT 2009
-----------------------------------------------------------------
Revision: 2c9a1153bc1694e9656752a73526bd6b7461265b
Ancestor: 19b202a7eff53542a31f52433aa8bc17649f8b3d
Author: khc at pidgin.im
Date: 2009-05-11T00:17:40
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/2c9a1153bc1694e9656752a73526bd6b7461265b
Modified files:
libpurple/protocols/qq/qq_crypt.c
ChangeLog:
counterpart for ad057b75 in the outgoing side
-------------- next part --------------
============================================================
--- libpurple/protocols/qq/qq_crypt.c 9e92a6a638bbb2b9b206b7bf17f2becd15baea86
+++ libpurple/protocols/qq/qq_crypt.c 28e67dd437882e1aecfad337d5043f9295a1da52
@@ -163,9 +163,11 @@ static inline void encrypt_out(guint8 *c
c32_prev[0] = crypted32[0]; c32_prev[1] = crypted32[1];
/* set next 64 bits want to crypt*/
- crypted_ptr += 8;
- memcpy(crypted32, crypted_ptr, sizeof(crypted32));
- plain32[0] = crypted32[0] ^ c32_prev[0]; plain32[1] = crypted32[1] ^ c32_prev[1];
+ if (count64 > 0) {
+ crypted_ptr += 8;
+ memcpy(crypted32, crypted_ptr, sizeof(crypted32));
+ plain32[0] = crypted32[0] ^ c32_prev[0]; plain32[1] = crypted32[1] ^ c32_prev[1];
+ }
}
}
More information about the Commits
mailing list