summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-01-16 19:46:10 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-01-16 19:46:10 +0000
commit8d39d2800a17590be567ef9c5105605f1ce64d24 (patch)
tree27e9b48afbc6f7a3a27bd2a6ec5766520b315860 /ssl
parent598b562a7fdef4b66c35c1ab8df8065ed3d516dc (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 fb64d49166..f79efe53b7 100644
--- a/ssl/d1_srvr.c
+++ b/ssl/d1_srvr.c
@@ -292,6 +292,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;
/* HelloVerifyRequest resets Finished MAC */