Commit 63f7291c authored by Richard Levitte's avatar Richard Levitte
Browse files

apps/s_server.c: Avoid unused variable due to 'no-dtls'



Fixes #6098

Reviewed-by: default avatarMatthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/6104)

(cherry picked from commit ff25dd1a)
parent b3c58675
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -2012,9 +2012,7 @@ static int sv_body(int s, int stype, unsigned char *context)
    SSL *con = NULL;
    BIO *sbio;
    struct timeval timeout;
#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_MSDOS)
    struct timeval tv;
#else
#if !(defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_MSDOS))
    struct timeval *timeoutp;
#endif

@@ -2149,9 +2147,9 @@ static int sv_body(int s, int stype, unsigned char *context)
             * second and check for any keypress. In a proper Windows
             * application we wouldn't do this because it is inefficient.
             */
            tv.tv_sec = 1;
            tv.tv_usec = 0;
            i = select(width, (void *)&readfds, NULL, NULL, &tv);
            timeout.tv_sec = 1;
            timeout.tv_usec = 0;
            i = select(width, (void *)&readfds, NULL, NULL, &timeout);
            if (has_stdin_waiting())
                read_from_terminal = 1;
            if ((i < 0) || (!i && !read_from_terminal))