Commit 4f0bad28 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

make servers not crash when they rep-hist-note circuits that don't start at them


svn:r1317
parent e5cf3962
Loading
Loading
Loading
Loading
+8 −0
Changes for src/or/circuit.c: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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;
  }