Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kleopatra
Commits
367ca863
Commit
367ca863
authored
Dec 16, 2021
by
Ingo Klöcker
Browse files
Do not crash if primary fingerprint is nullptr
GnuPG-bug-id: 5334
parent
b4f5f2f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/commands/lookupcertificatescommand.cpp
View file @
367ca863
...
...
@@ -447,7 +447,8 @@ void LookupCertificatesCommand::Private::slotImportRequested(const std::vector<K
std
::
back_inserter
(
wkdKeys
),
std
::
back_inserter
(
otherKeys
),
[
this
](
const
auto
&
key
)
{
return
keyListing
.
wkdKeyFingerprints
.
find
(
key
.
primaryFingerprint
())
!=
std
::
end
(
keyListing
.
wkdKeyFingerprints
);
return
key
.
primaryFingerprint
()
&&
keyListing
.
wkdKeyFingerprints
.
find
(
key
.
primaryFingerprint
())
!=
std
::
end
(
keyListing
.
wkdKeyFingerprints
);
});
std
::
vector
<
Key
>
pgp
,
cms
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment