diff options
Diffstat (limited to 'src/lib/libssl/src/apps/s_server.c')
-rw-r--r-- | src/lib/libssl/src/apps/s_server.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/lib/libssl/src/apps/s_server.c b/src/lib/libssl/src/apps/s_server.c index 1082ee51ee..b5c6c2fa7b 100644 --- a/src/lib/libssl/src/apps/s_server.c +++ b/src/lib/libssl/src/apps/s_server.c | |||
@@ -1773,23 +1773,15 @@ sv_body(char *hostname, int s, unsigned char *context) | |||
1773 | 1773 | ||
1774 | if (!read_from_sslcon) { | 1774 | if (!read_from_sslcon) { |
1775 | FD_ZERO(&readfds); | 1775 | FD_ZERO(&readfds); |
1776 | openssl_fdset(fileno(stdin), &readfds); | 1776 | FD_SET(fileno(stdin), &readfds); |
1777 | openssl_fdset(s, &readfds); | 1777 | FD_SET(s, &readfds); |
1778 | /* | ||
1779 | * Note: under VMS with SOCKETSHR the second | ||
1780 | * parameter is currently of type (int *) whereas | ||
1781 | * under other systems it is (void *) if you don't | ||
1782 | * have a cast it will choke the compiler: if you do | ||
1783 | * have a cast then you can either go for (int *) or | ||
1784 | * (void *). | ||
1785 | */ | ||
1786 | if ((SSL_version(con) == DTLS1_VERSION) && | 1778 | if ((SSL_version(con) == DTLS1_VERSION) && |
1787 | DTLSv1_get_timeout(con, &timeout)) | 1779 | DTLSv1_get_timeout(con, &timeout)) |
1788 | timeoutp = &timeout; | 1780 | timeoutp = &timeout; |
1789 | else | 1781 | else |
1790 | timeoutp = NULL; | 1782 | timeoutp = NULL; |
1791 | 1783 | ||
1792 | i = select(width, (void *) &readfds, NULL, NULL, timeoutp); | 1784 | i = select(width, &readfds, NULL, NULL, timeoutp); |
1793 | 1785 | ||
1794 | if ((SSL_version(con) == DTLS1_VERSION) && DTLSv1_handle_timeout(con) > 0) { | 1786 | if ((SSL_version(con) == DTLS1_VERSION) && DTLSv1_handle_timeout(con) > 0) { |
1795 | BIO_printf(bio_err, "TIMEOUT occured\n"); | 1787 | BIO_printf(bio_err, "TIMEOUT occured\n"); |