Change error reason to match previous behaviour.
authorAdam Eijdenberg <eijdenberg@google.com>
Tue, 4 Aug 2015 22:15:38 +0000 (15:15 -0700)
committerAdam Eijdenberg <eijdenberg@google.com>
Tue, 4 Aug 2015 22:15:38 +0000 (15:15 -0700)
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
ssl/s3_srvr.c

index 725e3f9..76f49bd 100644 (file)
@@ -1014,7 +1014,7 @@ int ssl3_get_client_hello(SSL *s)
         if (!PACKET_get_net_2(&pkt, &csl)
                 || !PACKET_get_net_2(&pkt, &sil)
                 || !PACKET_get_net_2(&pkt, &cl)) {
-            SSLerr(SSL_F_SSL3_GET_CLIENT_HELLO, SSL_R_LENGTH_TOO_SHORT);
+            SSLerr(SSL_F_SSL3_GET_CLIENT_HELLO, SSL_R_RECORD_LENGTH_MISMATCH);
             al = SSL_AD_DECODE_ERROR;
             goto f_err;
         }