diff options
| author | Werner Koch <[email protected]> | 2002-09-20 11:47:55 +0000 | 
|---|---|---|
| committer | Werner Koch <[email protected]> | 2002-09-20 11:47:55 +0000 | 
| commit | f52d17f48f94f7ad17be40413fb08507949af871 (patch) | |
| tree | dca9b4df77123610f7cc7c3d9aeb5a10afc18c8e /gpgmeplug/gpgmeplug.c | |
| parent | * ath.c: Include sys/time.h if sys/select.h is not available. (diff) | |
| download | gpgme-f52d17f48f94f7ad17be40413fb08507949af871.tar.gz gpgme-f52d17f48f94f7ad17be40413fb08507949af871.zip | |
* gpgmeplug.c (nextCertificate): Sanity check for empty tmp_dn.
Diffstat (limited to 'gpgmeplug/gpgmeplug.c')
| -rw-r--r-- | gpgmeplug/gpgmeplug.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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; | 
