# HG changeset patch # User Daniel Atallah # Date 1191972829 0 # Node ID cfaf74ec93dc4be87347253fb0e1440141ed71dc # Parent 686a492e2b70d6f6f3a4f3f600f92c2d20cd8702 Prevent null pointer deref to fix CID 322. diff -r 686a492e2b70 -r cfaf74ec93dc libpurple/protocols/msn/contact.c --- a/libpurple/protocols/msn/contact.c Tue Oct 09 23:22:20 2007 +0000 +++ b/libpurple/protocols/msn/contact.c Tue Oct 09 23:33:49 2007 +0000 @@ -1177,7 +1177,7 @@ purple_debug_warning("MSN CL", "Unable to retrieve user %s from the userlist!\n", passport); } - if (user->uid != NULL) { + if (user != NULL && user->uid != NULL) { contact_xml = g_strdup_printf(MSN_CONTACT_ID_XML, user->uid); } else { contact_xml = g_strdup_printf(MSN_CONTACT_XML, passport);