Commit 1f1ce7cad3 for openssl.org

commit 1f1ce7cad32746f2dbbba8bbc5e82492241cb94b
Author: Neil Horman <nhorman@openssl.org>
Date:   Sat May 9 10:26:57 2026 -0400

    Fix up property test

    Because the duplicate test expects the cache get operation to take
    a reference count (which we no longer do), we need to not count it down
    before checking the resulting ref count

    Reviewed-by: Bob Beck <beck@openssl.org>
    Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
    MergeDate: Thu Jun 25 21:26:17 2026
    (Merged from https://github.com/openssl/openssl/pull/31143)

diff --git a/test/property_test.c b/test/property_test.c
index f827d3c435..47422b4049 100644
--- a/test/property_test.c
+++ b/test/property_test.c
@@ -678,7 +678,9 @@ static int test_query_cache_set_duplicate(void)
         || !TEST_ptr_eq(result, &refs))
         goto err;

+#ifdef OPENSSL_NO_CACHED_FETCH
     counted_down_ref(result);
+#endif
     result = NULL;
     res = 1;