aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2002-09-20 11:47:55 +0000
committerWerner Koch <[email protected]>2002-09-20 11:47:55 +0000
commitf52d17f48f94f7ad17be40413fb08507949af871 (patch)
treedca9b4df77123610f7cc7c3d9aeb5a10afc18c8e
parent* ath.c: Include sys/time.h if sys/select.h is not available. (diff)
downloadgpgme-f52d17f48f94f7ad17be40413fb08507949af871.tar.gz
gpgme-f52d17f48f94f7ad17be40413fb08507949af871.zip
* gpgmeplug.c (nextCertificate): Sanity check for empty tmp_dn.
-rw-r--r--gpgmeplug/ChangeLog4
-rw-r--r--gpgmeplug/gpgmeplug.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gpgmeplug/ChangeLog b/gpgmeplug/ChangeLog
index b2e25402..dd359c39 100644
--- a/gpgmeplug/ChangeLog
+++ b/gpgmeplug/ChangeLog
@@ -1,3 +1,7 @@
+2002-09-20 Werner Koch <[email protected]>
+
+ * gpgmeplug.c (nextCertificate): Sanity check for empty tmp_dn.
+
2002-08-20 Steffen Hansen <[email protected]>
* Use gpgme_op_import_ext() instead of gpgme_op_import(). We
diff --git a/gpgmeplug/gpgmeplug.c b/gpgmeplug/gpgmeplug.c
index 4dab9ef8..6e17c554 100644
--- a/gpgmeplug/gpgmeplug.c
+++ b/gpgmeplug/gpgmeplug.c
@@ -2173,7 +2173,7 @@ nextCertificate( struct CertIterator* it, struct CertificateInfo** result )
issuer_dn = tmp_dn = parse_dn( s );
/*it->info.issuer = xstrdup(s);*/
it->info.issuer = reorder_dn( issuer_dn );
- while( tmp_dn->key ) {
+ while( tmp_dn && tmp_dn->key ) {
free( tmp_dn->key );
free( tmp_dn->value );
++tmp_dn;