diff options
author | Roger Dingledine <arma@torproject.org> | 2004-03-20 20:21:20 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-03-20 20:21:20 +0000 |
commit | 4f0bad280d1a434f48233801f4e383c310283988 (patch) | |
tree | ca8162e3e0c8e7bdc2c6a95b211d9fbf77e494d4 | |
parent | e5cf3962851bae823eb8c72f92af6f37bb486ddd (diff) | |
download | tor-4f0bad280d1a434f48233801f4e383c310283988.tar.gz tor-4f0bad280d1a434f48233801f4e383c310283988.zip |
make servers not crash when they rep-hist-note circuits that don't start at them
svn:r1317
-rw-r--r-- | src/or/circuit.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/circuit.c b/src/or/circuit.c index 9c07532ff2..45b10ee252 100644 --- a/src/or/circuit.c +++ b/src/or/circuit.c @@ -833,6 +833,14 @@ circuit_rep_hist_note_result(circuit_t *circ) char *prev_nickname = NULL; routerinfo_t *router; hop = circ->cpath; + if(!hop) { + /* XXX + * if !hop, then we're not the beginning of this circuit. + * for now, just forget about it. later, we should remember when + * extends-through-us failed, too. + */ + return; + } if (options.ORPort) { prev_nickname = options.Nickname; } |