changeset 20664:324c25c2daad

Remove g_assert() from msimprpl.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Wed, 26 Sep 2007 19:55:33 +0000
parents 91a345965223
children 601083413e36
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	Wed Sep 26 10:35:37 2007 +0000
+++ b/libpurple/protocols/myspace/myspace.c	Wed Sep 26 19:55:33 2007 +0000
@@ -492,9 +492,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);