Fix another time comparison bug in circuit_stream_is_being_handled().

Nick, can you confirm this one?
This is also a backport candidate.


svn:r5497
This commit is contained in:
Roger Dingledine 2005-12-04 22:23:24 +00:00
parent ef000fd82e
commit bb8dc691eb

View File

@ -307,7 +307,7 @@ circuit_stream_is_being_handled(connection_t *conn, uint16_t port, int min)
circ->purpose == CIRCUIT_PURPOSE_C_GENERAL &&
!circ->build_state->is_internal &&
(!circ->timestamp_dirty ||
circ->timestamp_dirty + get_options()->MaxCircuitDirtiness < now)) {
circ->timestamp_dirty + get_options()->MaxCircuitDirtiness > now)) {
exitrouter = build_state_get_exit_router(circ->build_state);
if (exitrouter &&
(!need_uptime || circ->build_state->need_uptime)) {