Browse Source

Use raw_assert() in write_all().

This makes tor_log() finally non-circular.
Nick Mathewson 5 years ago
parent
commit
057d838409
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/util.c

+ 1 - 1
src/common/util.c

@@ -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)