diff options
-rw-r--r-- | g10/keydb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/g10/keydb.c b/g10/keydb.c index 45eb4aa34..a7691bbe2 100644 --- a/g10/keydb.c +++ b/g10/keydb.c @@ -1242,8 +1242,15 @@ parse_keyblock_image (iobuf_t iobuf, int pk_no, int uid_no, } if (err) { + es_fflush (es_stdout); log_error ("parse_keyblock_image: read error: %s\n", gpg_strerror (err)); + if (gpg_err_code (err) == GPG_ERR_INV_PACKET) + { + free_packet (pkt, &parsectx); + init_packet (pkt); + continue; + } err = gpg_error (GPG_ERR_INV_KEYRING); break; } |