[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Use raw_assert() in write_all().



commit 057d838409be7d908ce14979a2b486601fad8c08
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Wed Jun 20 15:09:42 2018 -0400

    Use raw_assert() in write_all().
    
    This makes tor_log() finally non-circular.
---
 src/common/util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/util.c b/src/common/util.c
index cee6a4a23..4fd07fabc 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)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits