mirror of https://github.com/openssl/openssl.git
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:
parent
0237f21e03
commit
417a8e8812
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue