summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-03-12 11:55:51 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-03-12 11:55:51 +0100
commit5c783dfc95c7b6aa67eca1828b05819fc89335e5 (patch)
tree6413faaa7c7e14215be98e8fec2a1146ecd16f7e
parentd2fecbf049ac2affc7bd06753cec141e30a2cc05 (diff)
downloadgnutls-5c783dfc95c7b6aa67eca1828b05819fc89335e5.tar.gz
do not set default record version (i.e. SSL 3.0) during a re-handshake.
-rw-r--r--lib/gnutls_record.c2
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);