pidgin: ddf9a92e: A patch from toofishes to fix a crash.

rlaager at pidgin.im rlaager at pidgin.im
Fri Jun 6 23:40:38 EDT 2008


-----------------------------------------------------------------
Revision: ddf9a92e5eff18d5dc957a19bc6b7d918904848b
Ancestor: 547cd65fb6e1faeb37d88730f0dbf45075a08426
Author: rlaager at pidgin.im
Date: 2008-06-07T01:58:23
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/ddf9a92e5eff18d5dc957a19bc6b7d918904848b

Modified files:
        libpurple/certificate.c

ChangeLog: 

A patch from toofishes to fix a crash.
Fixes #6036

-------------- next part --------------
============================================================
--- libpurple/certificate.c	84c0e7c3ab874b800d47712b56d961ba87d2f8b5
+++ libpurple/certificate.c	d76a13f43539ec74cc79f0cb209f8ef932a8ee78
@@ -787,8 +787,7 @@ x509_ca_locate_cert(GList *lst, const gc
 
 	for (cur = lst; cur; cur = cur->next) {
 		x509_ca_element *el = cur->data;
-		/* TODO: Unsafe? */
-		if ( !strcmp(dn, el->dn) ) {
+		if (el->dn && !strcmp(dn, el->dn)) {
 			return el;
 		}
 	}


More information about the Commits mailing list