CID 1442838: API usage errors
authorPauli <paul.dale@oracle.com>
Sun, 24 Feb 2019 11:27:02 +0000 (21:27 +1000)
committerPauli <paul.dale@oracle.com>
Sun, 24 Feb 2019 11:27:02 +0000 (21:27 +1000)
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/8318)

test/property_test.c

index 722de05d68c6457b4bbcc3c48275cd82c916d086..ee942526d8a4103c19010f87b3411c0997ad8047 100644 (file)
@@ -304,10 +304,8 @@ static int test_property(void)
     for (i = 0; i < OSSL_NELEM(queries); i++) {
         OSSL_PROPERTY_LIST *pq = NULL;
 
     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);
             || !TEST_str_eq((char *)result, queries[i].expected)) {
             TEST_note("iteration %zd", i + 1);
             ossl_property_free(pq);