pidgin: e5cd28da: printf("%s", NULL) when a cert has no CN...

darkrain42 at darkrain42 at
Thu Oct 15 22:41:36 EDT 2009

Revision: e5cd28dabffaedf15ae16dd9dfb64e2c0fe40e8c
Ancestor: f26473a70f05df45b0d951440a3357222dd82b5a
Author: darkrain42 at
Date: 2009-10-16T02:39:40
Branch: im.pidgin.pidgin

Modified files:


printf("%s", NULL) when a cert has no CN. Refs #10519.

This is a temporary change to keep it from crashing while not introducing
a string change.

-------------- next part --------------
--- libpurple/certificate.c	1360e9aaf40d5395229a05558c98cbf2c9af683a
+++ libpurple/certificate.c	a8d7ee634762e7d65e92f79c0bf8e7b39fa60423
@@ -1405,7 +1405,7 @@ x509_tls_cached_complete(PurpleCertifica
 			g_string_append_printf(errors, _("The certificate claims to be "
 						"from \"%s\" instead. This could mean that you are "
 						"not connecting to the service you believe you are."),
-						sn);
+						sn ? sn : "(null)");

More information about the Commits mailing list