summaryrefslogtreecommitdiffstats
path: root/test/property_test.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2019-02-24 21:27:02 +1000
committerPauli <paul.dale@oracle.com>2019-02-24 21:27:02 +1000
commitef9f6066998718ae904fc10d46205d67aad9aebe (patch)
tree5d3b594bf4203232de2cebf91571e284848ba332 /test/property_test.c
parent71d1b229e9bc230afaea64f03833329f82f6e488 (diff)
CID 1442838: API usage errors
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> (Merged from https://github.com/openssl/openssl/pull/8318)
Diffstat (limited to 'test/property_test.c')
-rw-r--r--test/property_test.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/property_test.c b/test/property_test.c
index 722de05d68..ee942526d8 100644
--- a/test/property_test.c
+++ b/test/property_test.c
@@ -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);