summaryrefslogtreecommitdiffstats
path: root/ssl/d1_srvr.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-04-03 16:25:54 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-04-03 16:25:54 +0000
commitac2024ccbfb8523538a6378695e8cd77e61d1306 (patch)
treeaffa88d8c5081f28ad0b0109164c198db43f83bd /ssl/d1_srvr.c
parent93164a7d64e0819d1168363247658bd6acdb68d6 (diff)
PR: 2458
Submitted by: Robin Seggelmann <seggelmann@fh-muenster.de> Reviewed by: steve Don't change state when answering DTLS ClientHello.
Diffstat (limited to 'ssl/d1_srvr.c')
-rw-r--r--ssl/d1_srvr.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/ssl/d1_srvr.c b/ssl/d1_srvr.c
index ac4fbda3a6..f6d72f5fa6 100644
--- a/ssl/d1_srvr.c
+++ b/ssl/d1_srvr.c
@@ -278,6 +278,12 @@ int dtls1_accept(SSL *s)
{
ret = 2;
s->d1->listen = 0;
+ /* Set expected sequence numbers
+ * to continue the handshake.
+ */
+ s->d1->handshake_read_seq = 2;
+ s->d1->handshake_write_seq = 1;
+ s->d1->next_handshake_write_seq = 1;
goto end;
}
@@ -737,9 +743,6 @@ int dtls1_send_hello_verify_request(SSL *s)
/* number of bytes to write */
s->init_num=p-buf;
s->init_off=0;
-
- /* buffer the message to handle re-xmits */
- dtls1_buffer_message(s, 0);
}
/* s->state = DTLS1_ST_SW_HELLO_VERIFY_REQUEST_B */