mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Don't let gpg return failure on an invalid packet in a keyblock.
* g10/keydb.c (parse_keyblock_image): Use log_info instead of log_error for skipped packets. * g10/keyring.c (keyring_get_keyblock): Ditto. -- log_info should be sufficient and makes this more robust. Some tools (e.g. Enigmail) are too picky on return codes from gpg. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
88e766d391
commit
b375d50ee4
2 changed files with 3 additions and 6 deletions
|
@ -459,8 +459,8 @@ keyring_get_keyblock (KEYRING_HANDLE hd, KBNODE *ret_kb)
|
|||
break; /* Allowed by us. */
|
||||
|
||||
default:
|
||||
log_error ("skipped packet of type %d in keyring\n",
|
||||
(int)pkt->pkttype);
|
||||
log_info ("skipped packet of type %d in keyring\n",
|
||||
(int)pkt->pkttype);
|
||||
free_packet(pkt, &parsectx);
|
||||
init_packet(pkt);
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue