From: Roger Dingledine Date: Sat, 20 Mar 2004 20:21:20 +0000 (+0000) Subject: make servers not crash when they rep-hist-note circuits that don't start at them X-Git-Tag: tor-0.0.3~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f0bad280d1a434f48233801f4e383c310283988;p=thirdparty%2Ftor.git make servers not crash when they rep-hist-note circuits that don't start at them svn:r1317 --- 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; }