A patch from toofishes to fix a crash.

Sat, 07 Jun 2008 01:58:23 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Sat, 07 Jun 2008 01:58:23 +0000
changeset 23451
a426760d244d
parent 23450
d66ca0a906d4
child 23452
0cf9a2c482ff

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

libpurple/certificate.c file | annotate | diff | comparison | revisions
--- a/libpurple/certificate.c	Sat Jun 07 00:00:34 2008 +0000
+++ b/libpurple/certificate.c	Sat Jun 07 01:58:23 2008 +0000
@@ -787,8 +787,7 @@
 
 	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;
 		}
 	}

mercurial