X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=ssl%2Fd1_pkt.c;h=39587039aa71058057e1ac27b706facebde0e3e3;hp=9b600fdf53d4192d4a88e0426f18e5580becdeb3;hb=478b50cf67d6a91fdcd584cff57c58b7e863055d;hpb=c6913eeb762edffddecaaba5c84909d7a7962927 diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c index 9b600fdf53..39587039aa 100644 --- a/ssl/d1_pkt.c +++ b/ssl/d1_pkt.c @@ -848,6 +848,12 @@ start: } } + if (s->d1->listen && rr->type != SSL3_RT_HANDSHAKE) + { + rr->length = 0; + goto start; + } + /* we now have a packet which can be read and processed */ if (s->s3->change_cipher_spec /* set when we receive ChangeCipherSpec, @@ -1052,6 +1058,7 @@ start: !(s->s3->flags & SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS) && !s->s3->renegotiate) { + s->d1->handshake_read_seq++; s->new_session = 1; ssl3_renegotiate(s); if (ssl3_renegotiate_check(s))