aboutsummaryrefslogtreecommitdiffstats
path: root/gpgmeplug
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gpgmeplug/ChangeLog6
-rw-r--r--gpgmeplug/gpgmeplug.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gpgmeplug/ChangeLog b/gpgmeplug/ChangeLog
index ae803c33..185bdd24 100644
--- a/gpgmeplug/ChangeLog
+++ b/gpgmeplug/ChangeLog
@@ -1,3 +1,9 @@
+2002-07-03 Werner Koch <[email protected]>
+
+ * gpgmeplug.c (nextCertificate): Actually free the entire array
+ and don't loop over tmp_dn and double free the first item.
+ Spotted by Bernhard Herzog.
+
2002-07-01 Werner Koch <[email protected]>
* gpgmeplug.c (findCertificates): Reintroduced a free which must
diff --git a/gpgmeplug/gpgmeplug.c b/gpgmeplug/gpgmeplug.c
index 5e5df108..72466a97 100644
--- a/gpgmeplug/gpgmeplug.c
+++ b/gpgmeplug/gpgmeplug.c
@@ -2125,8 +2125,8 @@ nextCertificate( struct CertIterator* it, struct CertificateInfo** result )
/*it->info.issuer = xstrdup(s);*/
it->info.issuer = reorder_dn( issuer_dn );
while( tmp_dn->key ) {
- free( issuer_dn->key );
- free( issuer_dn->value );
+ free( tmp_dn->key );
+ free( tmp_dn->value );
++tmp_dn;
}
free( issuer_dn );