From: Werner Koch Date: Wed, 3 Jul 2002 11:04:54 +0000 (+0000) Subject: * gpgmeplug.c (nextCertificate): Actually free the entire array X-Git-Tag: gpgme-1.2.0@1385~891 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=35787b08c2a7e0ccde3d1340c619db927682dfaa;p=gpgme.git * 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. --- diff --git a/trunk/gpgmeplug/ChangeLog b/trunk/gpgmeplug/ChangeLog index ae803c3..185bdd2 100644 --- a/trunk/gpgmeplug/ChangeLog +++ b/trunk/gpgmeplug/ChangeLog @@ -1,3 +1,9 @@ +2002-07-03 Werner Koch + + * 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 * gpgmeplug.c (findCertificates): Reintroduced a free which must diff --git a/trunk/gpgmeplug/gpgmeplug.c b/trunk/gpgmeplug/gpgmeplug.c index 5e5df10..72466a9 100644 --- a/trunk/gpgmeplug/gpgmeplug.c +++ b/trunk/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 );