mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
one debian bug fixed
This commit is contained in:
parent
8c24595c41
commit
ae78aed6b6
3 changed files with 17 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2001-06-15 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* getkey.c (merge_selfsigs): Exit gracefully when a secret key is
|
||||
encountered. May happen if a secret key is in public keyring.
|
||||
Reported by Francesco Potorti.
|
||||
|
||||
2001-06-12 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* getkey.c (compare_name): Use ascii_memistr(), ascii_memcasecmp()
|
||||
|
|
11
g10/getkey.c
11
g10/getkey.c
|
@ -1807,8 +1807,17 @@ merge_selfsigs( KBNODE keyblock )
|
|||
int revoked;
|
||||
PKT_public_key *main_pk;
|
||||
|
||||
if ( keyblock->pkt->pkttype != PKT_PUBLIC_KEY )
|
||||
if ( keyblock->pkt->pkttype != PKT_PUBLIC_KEY ) {
|
||||
if (keyblock->pkt->pkttype == PKT_SECRET_KEY ) {
|
||||
log_error ("expected public key but found secret key "
|
||||
"- must stop\n");
|
||||
/* we better exit here becuase a public key is expected at
|
||||
other places too. FIXME: Figure this out earlier and
|
||||
don't get to here at all */
|
||||
g10_exit (1);
|
||||
}
|
||||
BUG ();
|
||||
}
|
||||
|
||||
merge_selfsigs_main ( keyblock, &revoked );
|
||||
main_pk = keyblock->pkt->pkt.public_key;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue