Mercurial > pidgin
changeset 23036:e4d72cefc427
applied changes from 547cd65fb6e1faeb37d88730f0dbf45075a08426
through ddf9a92e5eff18d5dc957a19bc6b7d918904848b
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 19 Jun 2008 03:19:04 +0000 |
parents | 3f6ab2cbca5f |
children | f45cf8ffd0b3 |
files | libpurple/certificate.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/certificate.c Thu Jun 19 03:18:25 2008 +0000 +++ b/libpurple/certificate.c Thu Jun 19 03:19:04 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; } }