diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-20 15:09:42 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-20 16:16:45 -0400 |
commit | 057d838409be7d908ce14979a2b486601fad8c08 (patch) | |
tree | 7e15b73183b66237859e3ffd5578414cb0f8fedb /src/common/util.c | |
parent | 7a2dce90062187cac332cda2ca336db6547fe60b (diff) | |
download | tor-057d838409be7d908ce14979a2b486601fad8c08.tar.gz tor-057d838409be7d908ce14979a2b486601fad8c08.zip |
Use raw_assert() in write_all().
This makes tor_log() finally non-circular.
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index cee6a4a23c..4fd07fabc5 100644 --- a/src/common/util.c +++ b/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) |