diff options
-rw-r--r-- | apps/openssl/compat/poll_win.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/openssl/compat/poll_win.c b/apps/openssl/compat/poll_win.c index c9422b9..83191e5 100644 --- a/apps/openssl/compat/poll_win.c +++ b/apps/openssl/compat/poll_win.c | |||
@@ -248,9 +248,9 @@ poll(struct pollfd *pfds, nfds_t nfds, int timeout_ms) | |||
248 | timespent_ms = 0; | 248 | timespent_ms = 0; |
249 | wait_rc = WAIT_FAILED; | 249 | wait_rc = WAIT_FAILED; |
250 | 250 | ||
251 | if (timeout_ms < 0) | 251 | looptime_ms = (timeout_ms > 100 || timeout_ms == -1) ? 100 : timeout_ms; |
252 | if (timeout_ms == -1) | ||
252 | timeout_ms = INFINITE; | 253 | timeout_ms = INFINITE; |
253 | looptime_ms = timeout_ms > 100 ? 100 : timeout_ms; | ||
254 | 254 | ||
255 | do { | 255 | do { |
256 | struct timeval tv; | 256 | struct timeval tv; |