Mercurial > pidgin
comparison libpurple/protocols/myspace/myspace.c @ 20664:324c25c2daad
Remove g_assert() from msimprpl.
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Wed, 26 Sep 2007 19:55:33 +0000 |
parents | 7efdc052539d |
children | 02df6998b466 |
comparison
equal
deleted
inserted
replaced
20662:91a345965223 | 20664:324c25c2daad |
---|---|
490 data_out = g_new0(guchar, data_len); | 490 data_out = g_new0(guchar, data_len); |
491 | 491 |
492 purple_cipher_context_encrypt(rc4, (const guchar *)data, | 492 purple_cipher_context_encrypt(rc4, (const guchar *)data, |
493 data_len, data_out, &data_out_len); | 493 data_len, data_out, &data_out_len); |
494 purple_cipher_context_destroy(rc4); | 494 purple_cipher_context_destroy(rc4); |
495 | 495 g_free(data); |
496 /* TODO: Never assert in a protocol plugin! */ | 496 |
497 g_assert(data_out_len == data_len); | 497 if (data_out_len != data_len) { |
498 purple_debug_info("msim", "msim_compute_login_response: " | |
499 "data length mismatch: %d != %d\n", | |
500 data_out_len, data_len); | |
501 } | |
498 | 502 |
499 #ifdef MSIM_DEBUG_LOGIN_CHALLENGE | 503 #ifdef MSIM_DEBUG_LOGIN_CHALLENGE |
500 purple_debug_info("msim", "response=<%s>\n", data_out); | 504 purple_debug_info("msim", "response=<%s>\n", data_out); |
501 #endif | 505 #endif |
502 | 506 |