# HG changeset patch # User Mark Doliner # Date 1195199395 0 # Node ID 5cd93ff08ecc16b2c49702365342e389169893d8 # Parent 9736ee1ca29e0ef044969c21890782415529e1f6 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? diff -r 9736ee1ca29e -r 5cd93ff08ecc libpurple/certificate.c --- 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 */