Remove extra FD_SET

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25532)
This commit is contained in:
Andrew Dinh 2024-10-17 12:48:17 -07:00 committed by Neil Horman
parent 0237f21e03
commit 417a8e8812
2 changed files with 4 additions and 12 deletions

View File

@ -228,10 +228,6 @@ static void wait_for_activity(SSL *ssl)
if (SSL_net_read_desired(ssl))
FD_SET(sock, &read_fd);
/* Add the socket file descriptor to the fd_set */
FD_SET(sock, &read_fd);
FD_SET(sock, &write_fd);
/*
* Find out when OpenSSL would next like to be called, regardless of
* whether the state of the underlying socket has changed or not.

View File

@ -255,10 +255,6 @@ a more real-world application would likely use this time to perform other tasks.
if (SSL_net_read_desired(ssl))
FD_SET(sock, &read_fd);
/* Add the socket file descriptor to the fd_set */
FD_SET(sock, &read_fd);
FD_SET(sock, &write_fd);
/*
* Find out when OpenSSL would next like to be called, regardless of
* whether the state of the underlying socket has changed or not.