projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
766708f
)
PR: 2144
author
Dr. Stephen Henson
<steve@openssl.org>
Sat, 16 Jan 2010 19:45:46 +0000
(19:45 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Sat, 16 Jan 2010 19:45:46 +0000
(19:45 +0000)
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.
ssl/d1_srvr.c
patch
|
blob
|
history
diff --git
a/ssl/d1_srvr.c
b/ssl/d1_srvr.c
index 748bd86af467545d2abfe77cf7448be094f1df84..a7a9599d0f8316af9ba5b8c48d6664678e42891c 100644
(file)
--- 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 */