Skip to content

Commit 260b4bb

Browse files
committed
win32 build fix attempt
1 parent aec8acd commit 260b4bb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ext/openssl/openssl.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6907,11 +6907,8 @@ PHP_OPENSSL_API int php_openssl_random_pseudo_bytes(zend_string **buffer, zend_l
69076907

69086908
#ifdef PHP_WIN32
69096909
/* random/urandom equivalent on Windows */
6910-
if (php_win32_get_random_bytes((unsigned char*)buffer->val, (size_t) buffer_length) == FAILURE){
6910+
if (php_win32_get_random_bytes((unsigned char*)(*buffer)->val, (size_t) buffer_length) == FAILURE){
69116911
zend_string_release_ex(buffer, 0);
6912-
if (zstrong_result_returned) {
6913-
ZVAL_FALSE(zstrong_result_returned);
6914-
}
69156912
zend_throw_exception(zend_ce_exception, "Error reading from source device", 0);
69166913
return -1;
69176914
}

0 commit comments

Comments
 (0)