im.pidgin.pidgin: 66603f7de1fc1610a0feef9594a314e1543b8cac

datallah at pidgin.im datallah at pidgin.im
Tue Oct 9 22:09:22 EDT 2007


-----------------------------------------------------------------
Revision: 66603f7de1fc1610a0feef9594a314e1543b8cac
Ancestor: 1afe9cfb1186ba1dfb449d3ebae24cf1c920ba7d
Author: datallah at pidgin.im
Date: 2007-10-10T01:09:55
Branch: im.pidgin.pidgin

Modified files:
        libpurple/protocols/sametime/sametime.c

ChangeLog: 

Prevent null ptr deref (CID 346).

-------------- next part --------------
============================================================
--- libpurple/protocols/sametime/sametime.c	4463e0fae00f673df1a3b8a9345978861540b6a1
+++ libpurple/protocols/sametime/sametime.c	9492835d905c925629542049b4768598fd40bff8
@@ -5563,7 +5563,7 @@ static void search_resolved(struct mwSer
     msgA = _("No matches");
     msgB = _("The identifier '%s' did not match any users in your"
 	     " Sametime community.");
-    msg = g_strdup_printf(msgB, NSTR(res->name));
+    msg = g_strdup_printf(msgB, (res && res->name) ? NSTR(res->name) : "");
 
     purple_notify_error(gc, _("No Matches"), msgA, msg);
 


More information about the Commits mailing list