Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19435)
int SRP_VBASE_init(SRP_VBASE *vb, char *verifier_file)
{
- int error_code;
+ int error_code = SRP_ERR_MEMORY;
STACK_OF(SRP_gN) *SRP_gN_tab = sk_SRP_gN_new_null();
char *last_index = NULL;
int i;
TXT_DB *tmpdb = NULL;
BIO *in = BIO_new(BIO_s_file());
+ if (SRP_gN_tab == NULL)
+ goto err;
+
error_code = SRP_ERR_OPEN_FILE;
if (in == NULL || BIO_read_filename(in, verifier_file) <= 0)