Skip to content

Commit 5ff77b0

Browse files
committed
fix condition
1 parent 3a71fa3 commit 5ff77b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/openssl/xp_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ static size_t php_openssl_sockop_io(int read, php_stream *stream, char *buf, siz
263263
if (errno == EAGAIN && err == SSL_ERROR_WANT_READ && read) {
264264
retry = 1;
265265
}
266-
if (errno == EAGAIN && SSL_ERROR_WANT_WRITE && read == 0) {
266+
if (errno == EAGAIN && err == SSL_ERROR_WANT_WRITE && read == 0) {
267267
retry = 1;
268268
}
269269

0 commit comments

Comments
 (0)