diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-04-17 10:59:25 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-04-18 16:17:44 +0200 |
commit | 2bc0a7f5cc4c203d3ad11e0b73c77986ffa5bf28 (patch) | |
tree | be8121c87b8e6e5a98751a9a4b1f837d377ffb18 /lib/handshake.c | |
parent | dfc40f1250228278ec4c0d1d5bc29d396605b535 (diff) | |
download | gnutls-tmp-constate-fix.tar.gz |
_gnutls_epoch_new: allow re-allocation epoch next epochtmp-constate-fix
On certain cases when re-handshake is interrupted by application
data, _gnutls_epoch_new() will be called twice. Make sure that
this does not lead to an error. We also rename the function to
clarify its purpose _gnutls_epoch_setup_next().
Resolves #426
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/handshake.c')
-rw-r--r-- | lib/handshake.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handshake.c b/lib/handshake.c index baae557c63..a530fb9a8c 100644 --- a/lib/handshake.c +++ b/lib/handshake.c @@ -2531,7 +2531,7 @@ int gnutls_handshake(gnutls_session_t session) return gnutls_assert_val(GNUTLS_E_NO_PRIORITIES_WERE_SET); ret = - _gnutls_epoch_new(session, 0, NULL); + _gnutls_epoch_setup_next(session, 0, NULL); if (ret < 0) return gnutls_assert_val(ret); |