summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-08-23 09:24:20 -0400
committerNick Mathewson <nickm@torproject.org>2016-08-23 09:24:20 -0400
commite8d7953c611200835d4011b12e210e878f0d13fd (patch)
treec5563235e681937d642ed91a46ec8503ed0e6622
parentbd45f7c6685f887ead3432104cea156cbcc3e3a6 (diff)
downloadtor-e8d7953c611200835d4011b12e210e878f0d13fd.tar.gz
tor-e8d7953c611200835d4011b12e210e878f0d13fd.zip
Use tor_assert, not assert.
-rw-r--r--src/or/router.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 40aae293fd..e9961d4594 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -1970,8 +1970,8 @@ static void
router_check_descriptor_address_port_consistency(uint32_t ipv4h_desc_addr,
int listener_type)
{
- assert(listener_type == CONN_TYPE_OR_LISTENER ||
- listener_type == CONN_TYPE_DIR_LISTENER);
+ tor_assert(listener_type == CONN_TYPE_OR_LISTENER ||
+ listener_type == CONN_TYPE_DIR_LISTENER);
/* The first advertised Port may be the magic constant CFG_AUTO_PORT.
*/
@@ -1985,7 +1985,7 @@ router_check_descriptor_address_port_consistency(uint32_t ipv4h_desc_addr,
AF_INET);
/* If we're building a descriptor with no advertised address,
* something is terribly wrong. */
- assert(port_addr);
+ tor_assert(port_addr);
tor_addr_t desc_addr;
char port_addr_str[TOR_ADDR_BUF_LEN];