diff options
author | Tim Rühsen <tim.ruehsen@gmx.de> | 2018-12-04 17:15:02 +0100 |
---|---|---|
committer | Tim Rühsen <tim.ruehsen@gmx.de> | 2018-12-06 16:13:00 +0100 |
commit | 3507f23cec212506da3c6836dbb159df4b41439f (patch) | |
tree | ff2f02ed31c2473c6fc795864ba98d758cce5c49 /lib/state.c | |
parent | 493723ee38cd817a60f25bb0bea505c80b22407c (diff) | |
download | gnutls-3507f23cec212506da3c6836dbb159df4b41439f.tar.gz |
Fix gnutls_handshake_set_timeout() for values < 1000tmp-fix-timeout
handshake-timeout.c now tests for <1000ms timeout and for >=1000ms
timeout. The test duration decreased from 45s to 1.2s.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Diffstat (limited to 'lib/state.c')
-rw-r--r-- | lib/state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/state.c b/lib/state.c index a60544737a..392183c95f 100644 --- a/lib/state.c +++ b/lib/state.c @@ -430,7 +430,8 @@ void _gnutls_handshake_internal_state_clear(gnutls_session_t session) _gnutls_epoch_gc(session); - session->internals.handshake_endtime = 0; + session->internals.handshake_endtime.tv_sec = 0; + session->internals.handshake_endtime.tv_nsec = 0; session->internals.handshake_in_progress = 0; session->internals.tfo.connect_addrlen = 0; |