diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-02-26 11:43:53 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-02-26 11:43:53 +0100 |
commit | f66383eff7fad47bd61b84f63325eb6e2825669b (patch) | |
tree | fb71cc92c4289f0f67640262dcf54cb642955dcc /lib/gnutls_handshake.c | |
parent | 912479ea08018840da770963cb8666de62a3be6e (diff) | |
download | gnutls-f66383eff7fad47bd61b84f63325eb6e2825669b.tar.gz |
When rehandshake is requested by server force the cleanup of the previous handshake state.
Diffstat (limited to 'lib/gnutls_handshake.c')
-rw-r--r-- | lib/gnutls_handshake.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gnutls_handshake.c b/lib/gnutls_handshake.c index e6f3f27200..3761b17353 100644 --- a/lib/gnutls_handshake.c +++ b/lib/gnutls_handshake.c @@ -2210,6 +2210,8 @@ gnutls_rehandshake (gnutls_session_t session) if (session->security_parameters.entity == GNUTLS_CLIENT) return GNUTLS_E_INVALID_REQUEST; + _dtls_async_timer_delete(session); + ret = _gnutls_send_empty_handshake (session, GNUTLS_HANDSHAKE_HELLO_REQUEST, AGAIN (STATE50)); |