diff --git a/ssl/d1_clnt.c b/ssl/d1_clnt.c index 6653d587d..3aeb82627 100644 --- a/ssl/d1_clnt.c +++ b/ssl/d1_clnt.c @@ -490,6 +490,7 @@ int dtls1_connect(SSL *s) /* done with handshaking */ s->d1->handshake_read_seq = 0; + s->d1->next_handshake_write_seq = 0; goto end; /* break; */ diff --git a/ssl/d1_srvr.c b/ssl/d1_srvr.c index 0bbf8ae7f..3114a0f72 100644 --- a/ssl/d1_srvr.c +++ b/ssl/d1_srvr.c @@ -554,6 +554,7 @@ int dtls1_accept(SSL *s) s->d1->handshake_read_seq = 0; /* next message is server hello */ s->d1->handshake_write_seq = 0; + s->d1->next_handshake_write_seq = 0; goto end; /* break; */