Fix DTLS buffered message DoS attack
[openssl.git] / ssl / statem / statem_lib.c
index fac9684ce261765d6b9b13e863114aa6e8b10f3b..19b75a7ac70f9cfb91698419219f7ceb296a7547 100644 (file)
@@ -331,6 +331,7 @@ WORK_STATE tls_finish_handshake(SSL *s, WORK_STATE wst)
             s->d1->handshake_read_seq = 0;
             s->d1->handshake_write_seq = 0;
             s->d1->next_handshake_write_seq = 0;
+            dtls1_clear_received_buffer(s);
         }
     }