pidgin.2.5.6: 5c9341eb: *** Plucked rev 2c9a1153 (khc at pidgin.im)...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Sun May 10 20:25:37 EDT 2009


-----------------------------------------------------------------
Revision: 5c9341eb71b1f19dcf5551e7da6f0750d8db75c8
Ancestor: fdee7971253e93bb0901daf84807b9d35dc8f506
Author: darkrain42 at pidgin.im
Date: 2009-05-11T00:20:17
Branch: im.pidgin.pidgin.2.5.6
URL: http://d.pidgin.im/viewmtn/revision/info/5c9341eb71b1f19dcf5551e7da6f0750d8db75c8

Modified files:
        libpurple/protocols/qq/qq_crypt.c

ChangeLog: 

*** Plucked rev 2c9a1153 (khc at pidgin.im):
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