From: Dr. Stephen Henson Date: Sat, 16 Jan 2010 19:45:59 +0000 (+0000) Subject: PR: 2144 X-Git-Tag: OpenSSL_1_0_0-beta5~13 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=ddba003d5e7b55a2da40f1e66a132c040d32b78a 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. --- 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 */