提交 f50688b4 编写于 作者: K Kees Cook 提交者: Shuah Khan

selftests/tls: Add {} to avoid static checker warning

This silences a static checker warning due to the unusual macro
construction of EXPECT_*() by adding explicit {}s around the enclosing
while loop.
Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
Fixes: 7f657d5b ("selftests: tls: add selftests for TLS sockets")
Signed-off-by: NKees Cook <keescook@chromium.org>
Signed-off-by: NShuah Khan <skhan@linuxfoundation.org>
上级 1421ec68
......@@ -418,8 +418,9 @@ TEST_F(tls, sendmsg_large)
EXPECT_EQ(sendmsg(self->cfd, &msg, 0), send_len);
}
while (recvs++ < sends)
while (recvs++ < sends) {
EXPECT_NE(recv(self->fd, mem, send_len, 0), -1);
}
free(mem);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册