tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 057d838409be7d908ce14979a2b486601fad8c08
parent 7a2dce90062187cac332cda2ca336db6547fe60b
Author: Nick Mathewson <nickm@torproject.org>
Date:   Wed, 20 Jun 2018 15:09:42 -0400

Use raw_assert() in write_all().

This makes tor_log() finally non-circular.

Diffstat:
Msrc/common/util.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)