提交 5b820d78 编写于 作者: K Kurt Roeckx

Fix usage of ossl_assert()

Reviewed-by: NAndy Polyakov <appro@openssl.org>
GH: #6044
上级 198a2ed7
......@@ -206,7 +206,8 @@ static size_t sysctl_random(char *buf, size_t buflen)
* the sysctl returns long and we want to request something not a multiple
* of longs, which should never be the case.
*/
ossl_assert(buflen % sizeof(long) == 0);
if (!ossl_assert(buflen % sizeof(long) == 0))
return 0;
mib[0] = CTL_KERN;
mib[1] = KERN_ARND;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册