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/connection_or.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/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index dd678c04b..98c1f3bcb 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -78,6 +78,9 @@ int connection_or_finished_flushing(connection_t *conn) { if (conn->state != OR_CONN_STATE_OPEN) { log_fn(LOG_WARN,"BUG: called in unexpected state %d",conn->state); +#ifdef TOR_FRAGILE + tor_assert(0); +#endif return -1; } @@ -210,7 +213,7 @@ connection_t *connection_or_connect(uint32_t addr, uint16_t port, if (server_mode(get_options()) && (me=router_get_my_routerinfo()) && !memcmp(me->identity_digest, id_digest,DIGEST_LEN)) { - log_fn(LOG_WARN,"Bug: Request to connect to myself! Failing."); + log_fn(LOG_WARN,"Bug: Client asked me to connect to myself! Refusing."); return NULL; } |