diff options
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | ext/openssl/xp_ssl.c | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -19,6 +19,10 @@ PHP NEWS . Fixed bug #79441 (Segfault in mb_chr() if internal encoding is unsupported). (Girgias) +- OpenSSL: + . Fixed bug #79497 (stream_socket_client() throws an unknown error sometimes + with <1s timeout). (Joe Cai) + - SPL: . Fixed bug #69264 (__debugInfo() ignored while extending SPL classes). (cmb) diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c index 635bcbf330..c6e9a29b45 100644 --- a/ext/openssl/xp_ssl.c +++ b/ext/openssl/xp_ssl.c @@ -2253,8 +2253,8 @@ static struct timeval php_openssl_subtract_timeval(struct timeval a, struct time difference.tv_usec = a.tv_usec - b.tv_usec; if (a.tv_usec < b.tv_usec) { - b.tv_sec -= 1L; - b.tv_usec += 1000000L; + difference.tv_sec -= 1L; + difference.tv_usec += 1000000L; } return difference; |