提交 df065a2b 编写于 作者: M Matt Caswell

Remove else after a return in packet code

Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 82657355
......@@ -45,8 +45,8 @@ static size_t maxmaxsize(size_t lenbytes)
{
if (lenbytes >= sizeof(size_t) || lenbytes == 0)
return SIZE_MAX;
else
return ((size_t)1 << (lenbytes * 8)) - 1 + lenbytes;
return ((size_t)1 << (lenbytes * 8)) - 1 + lenbytes;
}
int WPACKET_init_len(WPACKET *pkt, BUF_MEM *buf, size_t lenbytes)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册