CORE: Fix a couple of bugs in algorithm_do_this()
authorRichard Levitte <levitte@openssl.org>
Fri, 15 May 2020 05:50:43 +0000 (07:50 +0200)
committerRichard Levitte <levitte@openssl.org>
Sat, 16 May 2020 10:08:32 +0000 (12:08 +0200)
commit827f04d5105e9bec0af214c42b8ad799fba5bb0d
treea67f85d9a3c92e3d0d7be9a1af7ba42a1bf37772
parent0b2b0be948404cefe7160c9b1096bc554e982f03
CORE: Fix a couple of bugs in algorithm_do_this()

The call of ossl_provider_query_operation() used |data->operation_id|,
when |cur_operation| should be used.

If any ossl_provider_query_operation() call returned NULL, the loop
was stopped, when it should just continue on to the next operation.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11837)
crypto/core_algorithm.c