changeset 20706:370cb5fd5586

- Notify on NULL strings instead of just crashing
author William Ehlhardt <williamehlhardt@gmail.com>
date Sat, 29 Sep 2007 05:11:04 +0000
parents 3e85d985d9f0
children 58455f507a9b f62eb68c9dda
files libpurple/plugins/ssl/ssl-gnutls.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/plugins/ssl/ssl-gnutls.c	Sat Sep 29 04:59:50 2007 +0000
+++ b/libpurple/plugins/ssl/ssl-gnutls.c	Sat Sep 29 05:11:04 2007 +0000
@@ -674,7 +674,9 @@
 					  "Certificate for %s claims to be "
 					  "issued by %s, but the certificate "
 					  "for %s does not match.\n",
-					  crt_id, crt_issuer_id, issuer_id);
+					  crt_id ? crt_id : "(null)",
+					  crt_issuer_id ? crt_issuer_id : "(null)",
+					  issuer_id ? issuer_id : "(null)");
 			g_free(crt_id);
 			g_free(issuer_id);
 			g_free(crt_issuer_id);