1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-10 13:04:23 +01:00

* pubkey-enc.c (get_it): Fix segv, test for revoked only when PK

has been assigned.
This commit is contained in:
Werner Koch 2002-10-23 07:06:56 +00:00
parent 4b2cd72c24
commit d964ea1f84
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-10-23 Werner Koch <wk@gnupg.org>
* pubkey-enc.c (get_it): Fix segv, test for revoked only when PK
has been assigned.
2002-10-21 Werner Koch <wk@gnupg.org>
* exec.c [__CYGWIN32__]: Keep cygwin separate from Mingw32;

View File

@ -245,7 +245,7 @@ get_it( PKT_pubkey_enc *enc, DEK *dek, PKT_secret_key *sk, u32 *keyid )
}
}
if ( pk->is_revoked ) {
if ( pk && pk->is_revoked ) {
log_info( _("NOTE: key has been revoked") );
putc( '\n', log_stream() );
show_revocation_reason( pk, 1 );