From 1424f3125364ce7e9847848bc55442069365572d Mon Sep 17 00:00:00 2001 From: SET Date: Fri, 13 Nov 2020 21:46:09 +0100 Subject: [PATCH] Ignore unknown fingerprints when certifying keys. A fingerprint manually added in the config file may be missing in the keyring. --- PopupCertifyUserId.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PopupCertifyUserId.cpp b/PopupCertifyUserId.cpp index 151978a..f6baea7 100644 --- a/PopupCertifyUserId.cpp +++ b/PopupCertifyUserId.cpp @@ -114,6 +114,12 @@ void PopupCertifyUserId::FillPrivateKeyComboBox(vector& privateKeys) m_tmwMessage->SetText(e.asString()); return; } + /* + * A fingerprint manually added in the config file may be missing in + * the keyring. + */ + if (lst.size() == 0) + continue; // We are expecting one single key from a full fpr const GpgME::Key k = lst.at(0); if (!Tools::ConfigKeyIdMatchesKey(k, (*it)))