summaryrefslogtreecommitdiff
path: root/lib/state.c
diff options
context:
space:
mode:
authorTim Rühsen <tim.ruehsen@gmx.de>2018-12-04 17:15:02 +0100
committerTim Rühsen <tim.ruehsen@gmx.de>2018-12-06 16:13:00 +0100
commit3507f23cec212506da3c6836dbb159df4b41439f (patch)
treeff2f02ed31c2473c6fc795864ba98d758cce5c49 /lib/state.c
parent493723ee38cd817a60f25bb0bea505c80b22407c (diff)
downloadgnutls-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.c3
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;