From 533d3273bdb035c551842de14d0d632bc1550da1 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 11 Dec 2002 02:30:00 +0000 Subject: [PATCH] Fix ZTS build --- ext/openssl/openssl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 0033ecdcb6..58cf13e854 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -478,6 +478,8 @@ static int php_openssl_load_rand_file(const char * file, int *egdsocket, int *se *egdsocket = 0; *seeded = 0; + TSRMLS_FETCH(); + #ifdef WINDOWS RAND_screen(); #endif @@ -503,6 +505,9 @@ static int php_openssl_load_rand_file(const char * file, int *egdsocket, int *se static int php_openssl_write_rand_file(const char * file, int egdsocket, int seeded) { char buffer[MAXPATHLEN]; + + TSRMLS_FETCH(); + if (egdsocket || !seeded) { /* if we did not manage to read the seed file, we should not write * a low-entropy seed file back */ -- 2.40.0