Mercurial > pidgin
changeset 25607:b34d5e9b3d9b
*** Plucked rev 2c9a1153 (khc@pidgin.im):
counterpart for ad057b75 in the outgoing side
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 11 May 2009 00:20:17 +0000 |
parents | 2260e5b0ca91 |
children | b33635aced5c |
files | libpurple/protocols/qq/qq_crypt.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/qq/qq_crypt.c Sun May 10 23:25:26 2009 +0000 +++ b/libpurple/protocols/qq/qq_crypt.c Mon May 11 00:20:17 2009 +0000 @@ -163,9 +163,11 @@ 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]; + } } }