summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-01-16 19:45:46 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-01-16 19:45:46 +0000
commitaae48de0f71b76a0ccbb7e0eedc3946dde7e63e1 (patch)
tree92ba034fa82326f82a8246f8fb60c4095d89a6c7 /ssl
parent766708f24bb778e7cff24875d6f8138bbff2c902 (diff)
PR: 2144
Submitted by: steve@openssl.org Fix DTLS connection so new_session is reset if we read second client hello: new_session is used to detect renegotiation.
Diffstat (limited to 'ssl')
-rw-r--r--ssl/d1_srvr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/d1_srvr.c b/ssl/d1_srvr.c
index 748bd86af4..a7a9599d0f 100644
--- a/ssl/d1_srvr.c
+++ b/ssl/d1_srvr.c
@@ -290,6 +290,7 @@ int dtls1_accept(SSL *s)
ret = dtls1_send_hello_verify_request(s);
if ( ret <= 0) goto end;
s->state=SSL3_ST_SW_FLUSH;
+ s->new_session = 0;
s->s3->tmp.next_state=SSL3_ST_SR_CLNT_HELLO_A;
/* HelloVerifyRequests resets Finished MAC */