changeset 21553:5cd93ff08ecc

Don't crash when connecting to jabber.freenet.de. Michael Weitzel sent an email about this to the Pidgin devel mailing list on 21 October 2007. I would appreciate if someone familiar with the certificate code could check this change. Also, should we prompt the user if they want to continue trying to connect in the case where the certificate chain is invalid?
author Mark Doliner <mark@kingant.net>
date Fri, 16 Nov 2007 07:49:55 +0000
parents 9736ee1ca29e
children 7a1099df3678
files libpurple/certificate.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/certificate.c	Fri Nov 16 07:31:49 2007 +0000
+++ b/libpurple/certificate.c	Fri Nov 16 07:49:55 2007 +0000
@@ -1359,6 +1359,7 @@
 		/* Okay, we're done here */
 		purple_certificate_verify_complete(vrq,
 						   PURPLE_CERTIFICATE_INVALID);
+		return;
 	} /* if (signature chain not good) */
 
 	/* Next, attempt to verify the last certificate against a CA */