unlock on the early return path
CLA: trivial
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/28437)
(cherry picked from commit
c89b46826caff4ced320268f284d963ff06dee77)
template.parameters = sk_INFOPAIR_deep_copy(p->parameters,
infopair_copy,
infopair_free);
- if (template.parameters == NULL)
+ if (template.parameters == NULL) {
+ CRYPTO_THREAD_unlock(store->lock);
return NULL;
+ }
break;
}
CRYPTO_THREAD_unlock(store->lock);