Skip to content

Commit 8e9bc90

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Fix #79497: Fix php_openssl_subtract_timeval()
2 parents cd56395 + a230b5a commit 8e9bc90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/openssl/xp_ssl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2189,8 +2189,8 @@ static struct timeval php_openssl_subtract_timeval(struct timeval a, struct time
21892189
difference.tv_usec = a.tv_usec - b.tv_usec;
21902190

21912191
if (a.tv_usec < b.tv_usec) {
2192-
b.tv_sec -= 1L;
2193-
b.tv_usec += 1000000L;
2192+
difference.tv_sec -= 1L;
2193+
difference.tv_usec += 1000000L;
21942194
}
21952195

21962196
return difference;

0 commit comments

Comments
 (0)