Fix another case of 12848 in circuit_handle_first_hop
commit0044d74b3c51cf5824435e76eca2a675b51a14bc
authorNick Mathewson <nickm@torproject.org>
Tue, 12 Aug 2014 16:15:09 +0000 (12 12:15 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 12 Aug 2014 16:15:09 +0000 (12 12:15 -0400)
tree593b95e09fd2cdc0492dc6b9eff9c15064e4e191
parent981e037fd3b9e20b6e58e9c1470999a0f3a1ef0e
Fix another case of 12848 in circuit_handle_first_hop

I looked for other places where we set circ->n_chan early, and found
one in circuit_handle_first_hop() right before it calls
circuit_send_next_onion_skin(). If onion_skin_create() fails there,
then n_chan will still be set when circuit_send_next_onion_skin()
returns. We should probably fix that too.
src/or/circuitbuild.c