im.pidgin.pidgin.khc.msnp15: c5b8a906c26f5cb0fd8c7256852e3c1e346d7863

khc at pidgin.im khc at pidgin.im
Sat Jan 12 19:35:34 EST 2008


-----------------------------------------------------------------
Revision: c5b8a906c26f5cb0fd8c7256852e3c1e346d7863
Ancestor: e7fbd4b111f202b3902971a9ac59e1c9f92e29d0
Author: khc at pidgin.im
Date: 2008-01-13T00:29:56
Branch: im.pidgin.pidgin.khc.msnp15

Modified files:
        libpurple/protocols/msn/nexus.c

ChangeLog: 

zero out this, side effect is not crashing when password is incorrect

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/nexus.c	5e007a256122ccd5ba155b15e51ab74020585223
+++ libpurple/protocols/msn/nexus.c	6997190857617748c84c5f2ec0c169d5944bb71a
@@ -59,7 +59,7 @@ msn_nexus_new(MsnSession *session)
 	nexus->session = session;
 
 	nexus->token_len = sizeof(ticket_domains) / sizeof(char *[2]);
-	nexus->tokens = g_malloc(sizeof(MsnTicketToken) * nexus->token_len);
+	nexus->tokens = g_new0(MsnTicketToken, nexus->token_len);
 
 	for (i = 0; i < nexus->token_len; i++)
 		nexus->tokens[i].token = g_hash_table_new_full(g_str_hash, g_str_equal,


More information about the Commits mailing list