Use raw_assert() in write_all().

This makes tor_log() finally non-circular.
This commit is contained in:
Nick Mathewson 2018-06-20 15:09:42 -04:00
parent 7a2dce9006
commit 057d838409

View File

@ -2102,7 +2102,7 @@ write_all(tor_socket_t fd, const char *buf, size_t count, int isSocket)
{
size_t written = 0;
ssize_t result;
tor_assert(count < SSIZE_MAX);
raw_assert(count < SSIZE_MAX);
while (written != count) {
if (isSocket)