File cwe.patch of Package openssl-3
Index: openssl-3.5.0/test/simpledynamic.c =================================================================== --- openssl-3.5.0.orig/test/simpledynamic.c +++ openssl-3.5.0/test/simpledynamic.c @@ -34,7 +34,10 @@ int sd_sym(SD lib, const char *symname, int sd_close(SD lib) { - return dlclose(lib) != 0 ? 0 : 1; + int rc = dlclose(lib); + if (rc == NULL) + rc = 0; + return rc != 0 ? 0 : 1; } const char *sd_error(void)