diff options
author | Werner Koch <[email protected]> | 2002-07-03 11:04:54 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2002-07-03 11:04:54 +0000 |
commit | 992c88991d2d97327626a95c712477254450b75c (patch) | |
tree | 5220570f2fb4695ae7aa1e23b91d4c83b56c64de /gpgmeplug/gpgmeplug.c | |
parent | 2002-07-03 Marcus Brinkmann <[email protected]> (diff) | |
download | gpgme-992c88991d2d97327626a95c712477254450b75c.tar.gz gpgme-992c88991d2d97327626a95c712477254450b75c.zip |
* 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.
Diffstat (limited to '')
-rw-r--r-- | gpgmeplug/gpgmeplug.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 ); |