Fix another segfault in assert_circuit_ok.

svn:r6818
This commit is contained in:
Nick Mathewson 2006-07-23 08:13:45 +00:00
parent 7239262f71
commit d27cbf5d4b

View File

@ -1014,7 +1014,7 @@ assert_circuit_ok(const circuit_t *c)
tor_assert(!circuits_pending_or_conns || tor_assert(!circuits_pending_or_conns ||
!smartlist_isin(circuits_pending_or_conns, c)); !smartlist_isin(circuits_pending_or_conns, c));
} }
if (origin_circ->cpath) { if (origin_circ && origin_circ->cpath) {
assert_cpath_ok(origin_circ->cpath); assert_cpath_ok(origin_circ->cpath);
} }
if (c->purpose == CIRCUIT_PURPOSE_REND_ESTABLISHED) { if (c->purpose == CIRCUIT_PURPOSE_REND_ESTABLISHED) {