This iterates through the given param list which means the param p
should always be present in the given array.
Resolves coverity scan issue
1646880.
Signed-off-by: Norbert Pocs <norbertp@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27623)
break;
case PIDX_CIPHER_PARAM_AEAD_TAGLEN:
- if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->tag_len)) {
+ if (!OSSL_PARAM_set_size_t(p, ctx->tag_len)) {
ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
return 0;
}