gpg: Fix duplicate key import due to legacy key in keyring.
authorWerner Koch <wk@gnupg.org>
Tue, 4 Aug 2015 15:32:08 +0000 (17:32 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 4 Aug 2015 15:32:08 +0000 (17:32 +0200)
commit4a326d7c9a3b09efcccf4de00d6c003829ad89e8
tree7edd719f4c2d544a84e133b20cb7f55096bce3f3
parentf05a63b10428df2878b1bb6fde57a2fc2aa99105
gpg: Fix duplicate key import due to legacy key in keyring.

* g10/keydb.c (keydb_search_fpr): Skip legacy keys.
--

A test case for this problem can be found at
GnuPG-bug-id: 2031

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/keydb.c