diff options
author | David Goulet <dgoulet@torproject.org> | 2024-04-15 15:11:30 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2024-04-15 15:11:30 -0400 |
commit | a93759b46e8f883182ac368bd55df5152695c2e5 (patch) | |
tree | 2c1722425080881ed4c0a7b8e8999c952dcdd8e6 /src/core/or/circuitbuild.c | |
parent | 0bd1df58d0d6671bb0e386bcae2dd802b6eb7ef6 (diff) | |
parent | 29e3601c4249094e010c49e55e8bcd5769b4eb57 (diff) | |
download | tor-a93759b46e8f883182ac368bd55df5152695c2e5.tar.gz tor-a93759b46e8f883182ac368bd55df5152695c2e5.zip |
Merge branch 'maint-0.4.8'
Diffstat (limited to 'src/core/or/circuitbuild.c')
-rw-r--r-- | src/core/or/circuitbuild.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/or/circuitbuild.c b/src/core/or/circuitbuild.c index d6e022e7fa..dc1912294b 100644 --- a/src/core/or/circuitbuild.c +++ b/src/core/or/circuitbuild.c @@ -816,8 +816,10 @@ circuit_deliver_create_cell,(circuit_t *circ, circuit_set_n_circid_chan(circ, id, circ->n_chan); cell.circ_id = circ->n_circ_id; - append_cell_to_circuit_queue(circ, circ->n_chan, &cell, - CELL_DIRECTION_OUT, 0); + if (append_cell_to_circuit_queue(circ, circ->n_chan, &cell, + CELL_DIRECTION_OUT, 0) < 0) { + return -1; + } if (CIRCUIT_IS_ORIGIN(circ)) { /* Update began timestamp for circuits starting their first hop */ |