From 2e97593d259d4b86f1bc2acca4be7a96895f8633 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Tue, 1 Feb 2005 00:37:16 +0000 Subject: define TOR_FRAGILE if you want tor to give you a core when something goes wrong. this should only be used by people actively tracking bugs. svn:r3487 --- src/or/circuituse.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/or/circuituse.c') diff --git a/src/or/circuituse.c b/src/or/circuituse.c index 268f17b05..590a71bc4 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -699,6 +699,9 @@ circuit_launch_by_identity(uint8_t purpose, const char *exit_digest, default: log_fn(LOG_WARN,"Bug: unexpected purpose %d when cannibalizing a general circ.", purpose); +#ifdef TOR_FRAGILE + tor_assert(0); +#endif return NULL; } return circ; -- cgit v1.2.3