]> granicus.if.org Git - openssl/commitdiff
Lost alert in DTLS
authorLubom <lubomir.sedlar@gmail.com>
Thu, 7 May 2015 13:20:31 +0000 (14:20 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 22 May 2015 08:41:54 +0000 (09:41 +0100)
If a client receives a bad hello request in DTLS then the alert is not
sent correctly.

RT#2801

Signed-off-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
ssl/record/rec_layer_d1.c

index 45324ecb15ec8d0fae8c057c18d5bc1207a1fa85..159c222e61be017e6facbbde81e7e0ac3114c5b8 100644 (file)
@@ -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)) {
             al = SSL_AD_DECODE_ERROR;
             SSLerr(SSL_F_DTLS1_READ_BYTES, SSL_R_BAD_HELLO_REQUEST);
-            goto err;
+            goto f_err;
         }
 
         /*