diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-03-12 11:55:51 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-03-12 11:55:51 +0100 |
commit | 5c783dfc95c7b6aa67eca1828b05819fc89335e5 (patch) | |
tree | 6413faaa7c7e14215be98e8fec2a1146ecd16f7e | |
parent | d2fecbf049ac2affc7bd06753cec141e30a2cc05 (diff) | |
download | gnutls-5c783dfc95c7b6aa67eca1828b05819fc89335e5.tar.gz |
do not set default record version (i.e. SSL 3.0) during a re-handshake.
-rw-r--r-- | lib/gnutls_record.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_record.c b/lib/gnutls_record.c index a671785c65..8ed84f2c1d 100644 --- a/lib/gnutls_record.c +++ b/lib/gnutls_record.c @@ -316,7 +316,7 @@ copy_record_version (gnutls_session_t session, { gnutls_protocol_t lver; - if (htype != GNUTLS_HANDSHAKE_CLIENT_HELLO + if (session->internals.initial_negotiation_completed || htype != GNUTLS_HANDSHAKE_CLIENT_HELLO || session->internals.default_record_version[0] == 0) { lver = gnutls_protocol_get_version (session); |