From: Denys Vlasenko Date: Wed, 14 Feb 2018 16:37:41 +0000 (+0100) Subject: tls: remove redundant floor prevention X-Git-Tag: 1_29_0~235 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a48eadbc22d3892481826e0b7dc4c7a5d2baad5c;p=oweals%2Fbusybox.git tls: remove redundant floor prevention function old new delta tls_xread_record 499 489 -10 Signed-off-by: Denys Vlasenko --- diff --git a/networking/tls.c b/networking/tls.c index da7b6058f..99722cfb4 100644 --- a/networking/tls.c +++ b/networking/tls.c @@ -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",