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

darkrain42 at pidgin.im darkrain42 at pidgin.im
Thu Oct 15 22:41:36 EDT 2009


-----------------------------------------------------------------
Revision: e5cd28dabffaedf15ae16dd9dfb64e2c0fe40e8c
Ancestor: f26473a70f05df45b0d951440a3357222dd82b5a
Author: darkrain42 at pidgin.im
Date: 2009-10-16T02:39:40
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/e5cd28dabffaedf15ae16dd9dfb64e2c0fe40e8c

Modified files:
        libpurple/certificate.c

ChangeLog: 

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)");
 			g_free(sn);
 
 			flags &= ~PURPLE_CERTIFICATE_NAME_MISMATCH;


More information about the Commits mailing list