Add some extra comments following alert changes
[openssl.git] / ssl / record / ssl3_record.c
index aea52fd7fae9f31a096e7347d9c6da3138adbc44..bafc976cde405d9175739ee017d1a9fd4f99b01c 100644 (file)
@@ -644,6 +644,10 @@ int ssl3_get_record(SSL *s)
                                 &thisrr->data[end], 1, s, s->msg_callback_arg);
         }
 
+        /*
+         * TLSv1.3 alert and handshake records are required to be non-zero in
+         * length.
+         */
         if (SSL_IS_TLS13(s)
                 && (thisrr->type == SSL3_RT_HANDSHAKE
                     || thisrr->type == SSL3_RT_ALERT)