Commit 4dc1aa04 authored by Lubom's avatar Lubom Committed by Matt Caswell
Browse files

Lost alert in DTLS



If a client receives a bad hello request in DTLS then the alert is not
sent correctly.

RT#2801

Signed-off-by: default avatarMatt Caswell <matt@openssl.org>
Reviewed-by: default avatarKurt Roeckx <kurt@openssl.org>
parent a7f82a1a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -704,7 +704,7 @@ int dtls1_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek)
            (s->rlayer.d->handshake_fragment[3] != 0)) {
            (s->rlayer.d->handshake_fragment[3] != 0)) {
            al = SSL_AD_DECODE_ERROR;
            al = SSL_AD_DECODE_ERROR;
            SSLerr(SSL_F_DTLS1_READ_BYTES, SSL_R_BAD_HELLO_REQUEST);
            SSLerr(SSL_F_DTLS1_READ_BYTES, SSL_R_BAD_HELLO_REQUEST);
            goto err;
            goto f_err;
        }
        }


        /*
        /*