changeset 28391:b7d60f0e1df2

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.
author Paul Aurich <paul@darkrain42.org>
date Fri, 16 Oct 2009 02:39:40 +0000
parents fd495ede2f3a
children 64fbf431d952
files libpurple/certificate.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/certificate.c	Fri Oct 16 01:27:25 2009 +0000
+++ b/libpurple/certificate.c	Fri Oct 16 02:39:40 2009 +0000
@@ -1405,7 +1405,7 @@
 			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;