diff options
author | Roger Dingledine <arma@torproject.org> | 2005-02-01 00:37:16 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-02-01 00:37:16 +0000 |
commit | 2e97593d259d4b86f1bc2acca4be7a96895f8633 (patch) | |
tree | 80862d2194423d8567e586d970abb73fc356632d /src/or/directory.c | |
parent | e7e77d6d8e6bdbd77f74021917d612b514cc8fcf (diff) | |
download | tor-2e97593d259d4b86f1bc2acca4be7a96895f8633.tar tor-2e97593d259d4b86f1bc2acca4be7a96895f8633.tar.gz |
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
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 174250025..1fd242a1b 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -1080,6 +1080,9 @@ int connection_dir_finished_flushing(connection_t *conn) { return 0; default: log_fn(LOG_WARN,"Bug: called in unexpected state %d.", conn->state); +#ifdef TOR_FRAGILE + tor_assert(0); +#endif return -1; } return 0; |