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

Use for loop in WPACKET_fill_lengths instead of do...while

Based on review feedback
Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2259)
上级 34f7245b
......@@ -232,12 +232,10 @@ int WPACKET_fill_lengths(WPACKET *pkt)
if (pkt->subs == NULL)
return 0;
sub = pkt->subs;
do {
for (sub = pkt->subs; sub != NULL; sub = sub->parent) {
if (!wpacket_intern_close(pkt, sub, 0))
return 0;
sub = sub->parent;
} while (sub != NULL);
}
return 1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册