Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
MergeDate: Tue Feb 24 14:04:45 2026
(Merged from https://github.com/openssl/openssl/pull/29612)
if (idx > INT_MAX)
return NULL;
- buf = sk_X509_BUFFER_value(param->ips, (int)idx);
-
if (param == NULL || param->ips == NULL) {
ERR_raise(ERR_LIB_X509, ERR_R_PASSED_NULL_PARAMETER);
return NULL;
}
+ buf = sk_X509_BUFFER_value(param->ips, (int)idx);
+
if (buf != NULL) {
if (plen != NULL)
*plen = buf->len;