mirror of
https://github.com/openssl/openssl.git
synced 2025-03-19 19:50:42 +08:00
CID 1442838: API usage errors
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> (Merged from https://github.com/openssl/openssl/pull/8318)
This commit is contained in:
parent
71d1b229e9
commit
ef9f606699
@ -304,10 +304,8 @@ static int test_property(void)
|
||||
for (i = 0; i < OSSL_NELEM(queries); i++) {
|
||||
OSSL_PROPERTY_LIST *pq = NULL;
|
||||
|
||||
if (!TEST_true(ossl_property_read_lock(store))
|
||||
|| !TEST_true(ossl_method_store_fetch(store, queries[i].nid,
|
||||
queries[i].prop, &result))
|
||||
|| !TEST_true(ossl_property_unlock(store))
|
||||
if (!TEST_true(ossl_method_store_fetch(store, queries[i].nid,
|
||||
queries[i].prop, &result))
|
||||
|| !TEST_str_eq((char *)result, queries[i].expected)) {
|
||||
TEST_note("iteration %zd", i + 1);
|
||||
ossl_property_free(pq);
|
||||
|
Loading…
x
Reference in New Issue
Block a user