]> git.ipfire.org Git - thirdparty/openssl.git/commit
CORE: perform post-condition in algorithm_do_this() under all circumstances
authorRichard Levitte <levitte@openssl.org>
Fri, 3 Jul 2020 12:12:54 +0000 (14:12 +0200)
committerRichard Levitte <levitte@openssl.org>
Sun, 5 Jul 2020 12:07:14 +0000 (14:07 +0200)
commitdd76b90ef6cf9bd344c9a6cd0de536a734d1b6a3
tree466d4a6382ce4d58d975a9bc7d07134082793ae2
parent1dc1ea182be183d8a393fdce4494360aee059cd2
CORE: perform post-condition in algorithm_do_this() under all circumstances

When ossl_provider_query_operation() returned NULL, the post-condition
callback wasn't called, and could make algorithm_do_this() falsely
tell the caller that there was an error.  Because of this, a provider
that answered with NULL for a particular operation identity would
effectively block the same query on all following providers.

Fixes #12293

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12365)
crypto/core_algorithm.c