tls: remove redundant floor prevention
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 14 Feb 2018 16:37:41 +0000 (17:37 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 14 Feb 2018 16:37:41 +0000 (17:37 +0100)
function                                             old     new   delta
tls_xread_record                                     499     489     -10

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/tls.c

index da7b6058fde4af5ed2010b54f0f44ef6d7370b72..99722cfb427917f528b65017d28f626670b486dd 100644 (file)
@@ -806,8 +806,6 @@ static int tls_xread_record(tls_state_t *tls, const char *expected)
                         || xhdr->proto_min != TLS_MIN
                        ) {
                                sz = total < target ? total : target;
-                               if (sz > 24)
-                                       sz = 24; /* don't flood */
                                bad_record_die(tls, expected, sz);
                        }
                        dbg("xhdr type:%d ver:%d.%d len:%d\n",