- Stop triggering asserts if the controller tries to extend hidden

service circuits.
(also found by mwenge)


svn:r8682
This commit is contained in:
Roger Dingledine 2006-10-09 22:26:21 +00:00
parent 655859f76b
commit 552d828def
2 changed files with 8 additions and 7 deletions

View File

@ -24,6 +24,8 @@ Changes in version 0.1.2.3-alpha - 2006-10-??
not requested. not requested.
- When reporting verbose nicknames in entry_guards_getinfo(), avoid - When reporting verbose nicknames in entry_guards_getinfo(), avoid
printing a duplicate "$" in the keys we send. printing a duplicate "$" in the keys we send.
- Stop triggering asserts if the controller tries to extend hidden
service circuits.
Changes in version 0.1.2.2-alpha - 2006-10-07 Changes in version 0.1.2.2-alpha - 2006-10-07

View File

@ -703,9 +703,9 @@ circuit_has_opened(origin_circuit_t *circ)
case CIRCUIT_PURPOSE_TESTING: case CIRCUIT_PURPOSE_TESTING:
circuit_testing_opened(circ); circuit_testing_opened(circ);
break; break;
default: /* default:
log_err(LD_BUG,"unhandled purpose %d",circ->_base.purpose); * This won't happen in normal operation, but might happen if the
tor_assert(0); * controller did it. Just let it slide. */
} }
} }
@ -793,10 +793,9 @@ circuit_build_failed(origin_circuit_t *circ)
failed_at_last_hop?"last":"non-last"); failed_at_last_hop?"last":"non-last");
rend_service_relaunch_rendezvous(circ); rend_service_relaunch_rendezvous(circ);
break; break;
default: /* default:
/* Other cases are impossible, since this function is only called with * This won't happen in normal operation, but might happen if the
* unbuilt circuits. */ * controller did it. Just let it slide. */
tor_assert(0);
} }
} }