mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
make servers not crash when they rep-hist-note circuits that don't start at them
svn:r1317
This commit is contained in:
parent
e5cf396285
commit
4f0bad280d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user