X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=ssl%2Frecord%2Fssl3_record.c;h=a08230da4b125b7a38cc8a162fd14a968b6905b5;hp=28ee2cc00587aa4d6af6371b24d777fbcb13394b;hb=08455bc9b0e69ed5f25c16fc30cc2db57cdca842;hpb=225f980d22dfe66aa3945c21609042c32284e61c diff --git a/ssl/record/ssl3_record.c b/ssl/record/ssl3_record.c index 28ee2cc005..a08230da4b 100644 --- a/ssl/record/ssl3_record.c +++ b/ssl/record/ssl3_record.c @@ -1875,8 +1875,11 @@ int dtls1_get_record(SSL *s) n2s(p, rr->length); - /* Lets check version */ - if (!s->first_packet) { + /* + * Lets check the version. We tolerate alerts that don't have the exact + * version number (e.g. because of protocol version errors) + */ + if (!s->first_packet && rr->type != SSL3_RT_ALERT) { if (version != s->version) { /* unexpected version, silently discard */ rr->length = 0;