The right variant is ~18 lines below.
Reviewed-by: Matt Caswell <matt@openssl.org>
/* Zero ex_data to make sure we're cleanup-safe */
memset(&ctx->ex_data, 0, sizeof(ctx->ex_data));
/* Zero ex_data to make sure we're cleanup-safe */
memset(&ctx->ex_data, 0, sizeof(ctx->ex_data));
- if (store) {
- ctx->verify_cb = store->verify_cb;
- /* Seems to always be 0 in OpenSSL, else must be idempotent */
+ /* store->cleanup is always 0 in OpenSSL, if set must be idempotent */
+ if (store)
ctx->cleanup = store->cleanup;
ctx->cleanup = store->cleanup;
ctx->cleanup = 0;
if (store && store->check_issued)
ctx->cleanup = 0;
if (store && store->check_issued)