X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=test%2Fparams_api_test.c;fp=test%2Fparams_api_test.c;h=c403f39abdd69f9415807a71ea445e51c2a86fe6;hp=616035ecc4458b830e3a79fc9da9dd4a6db38bb5;hb=2c99372dbdab23726327777f36e2cbc0a1af0873;hpb=0f73e719c6ca6c2e955e6c08a3ab171642dc2dc0 diff --git a/test/params_api_test.c b/test/params_api_test.c index 616035ecc4..c403f39abd 100644 --- a/test/params_api_test.c +++ b/test/params_api_test.c @@ -548,7 +548,7 @@ static int test_param_construct(void) if (!TEST_ptr(cp = OSSL_PARAM_locate(params, "bignum")) || !TEST_ptr(bn = BN_lebin2bn(bn_val, (int)sizeof(bn_val), NULL)) || !TEST_true(OSSL_PARAM_set_BN(cp, bn)) - || !TEST_size_t_eq(cp->return_size, sizeof(bn_val))) + || !TEST_size_t_eq(cp->data_size, cp->return_size)) goto err; /* Match the return size to avoid trailing garbage bytes */ cp->data_size = cp->return_size;