Skip to content

Commit

Permalink
Fix CID 1540660.
Browse files Browse the repository at this point in the history
  • Loading branch information
ni4 authored and antonsviridenko committed Mar 28, 2024
1 parent f464275 commit 8d6f9c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/rnp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3275,7 +3275,7 @@ ffi_decrypt_key_provider(const pgp_key_request_ctx_t *ctx, void *userdata)
if (ctx->secret && (ctx->search.type() == rnp::KeySearch::Type::KeyID)) {
auto ksearch = dynamic_cast<const rnp::KeyIDSearch *>(&ctx->search);
assert(ksearch != nullptr);
hidden = ksearch->hidden();
hidden = ksearch && ksearch->hidden();
}
/* default to the FFI key provider if not hidden keyid request */
if (!hidden) {
Expand Down

0 comments on commit 8d6f9c8

Please sign in to comment.