mirror of https://github.com/openssl/openssl
QUIC Front End I/O API: Remove unnecessary code from SSL_get_tick_timeout
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19703)
This commit is contained in:
parent
e28f512f04
commit
a1660c9422
|
@ -411,7 +411,7 @@ int ossl_quic_tick(QUIC_CONNECTION *qc)
|
|||
*/
|
||||
int ossl_quic_get_tick_timeout(QUIC_CONNECTION *qc, struct timeval *tv)
|
||||
{
|
||||
OSSL_TIME now, deadline = ossl_time_infinite();
|
||||
OSSL_TIME deadline = ossl_time_infinite();
|
||||
|
||||
if (qc->ch != NULL)
|
||||
deadline
|
||||
|
@ -423,14 +423,7 @@ int ossl_quic_get_tick_timeout(QUIC_CONNECTION *qc, struct timeval *tv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
now = ossl_time_now();
|
||||
if (ossl_time_compare(now, deadline) >= 0) {
|
||||
tv->tv_sec = 0;
|
||||
tv->tv_usec = 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
*tv = ossl_time_to_timeval(ossl_time_subtract(deadline, now));
|
||||
*tv = ossl_time_to_timeval(ossl_time_subtract(deadline, ossl_time_now()));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue