[tor-commits] [tor/master] relay/circuitbuild: Refactor circuit_extend()