Mercurial > pidgin
changeset 20245:9a48e67fbfc8
applied changes from f7687aed5d4c60018282a0629b67556f506ceb54
through 0a36aea71847198e73c07cbef0be7e7a7db12c57
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 28 Sep 2007 15:58:55 +0000 |
parents | d00e53fd9e88 |
children | 426df717a831 |
files | libpurple/protocols/myspace/myspace.c |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c Fri Sep 28 15:58:42 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.c Fri Sep 28 15:58:55 2007 +0000 @@ -490,9 +490,13 @@ purple_cipher_context_encrypt(rc4, (const guchar *)data, data_len, data_out, &data_out_len); purple_cipher_context_destroy(rc4); - - /* TODO: Never assert in a protocol plugin! */ - g_assert(data_out_len == data_len); + g_free(data); + + if (data_out_len != data_len) { + purple_debug_info("msim", "msim_compute_login_response: " + "data length mismatch: %d != %d\n", + data_out_len, data_len); + } #ifdef MSIM_DEBUG_LOGIN_CHALLENGE purple_debug_info("msim", "response=<%s>\n", data_out);