diff options
Diffstat (limited to 'g10/keydb.c')
-rw-r--r-- | g10/keydb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/g10/keydb.c b/g10/keydb.c index 960480708..34959ba4d 100644 --- a/g10/keydb.c +++ b/g10/keydb.c @@ -37,6 +37,7 @@ #include "../kbx/keybox.h" #include "keydb.h" #include "i18n.h" +#include "mailing-list.h" static int active_handles; @@ -1525,6 +1526,10 @@ keydb_update_keyblock (KEYDB_HANDLE hd, kbnode_t kb) assert (kb->pkt->pkttype == PKT_PUBLIC_KEY); pk = kb->pkt->pkt.public_key; + /* If the mailing list parameters are decrypted, restore the fake + data. */ + mailing_list_reprotect (kb); + if (!hd) return gpg_error (GPG_ERR_INV_ARG); |