From: Nick Mathewson Date: Mon, 15 Sep 2025 13:20:15 +0000 (-0400) Subject: Set is_relay_early to false when encoding relay msgs. X-Git-Tag: tor-0.4.9.3-alpha~13^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=63332eb3e711786f;p=thirdparty%2Ftor.git Set is_relay_early to false when encoding relay msgs. Spotted by Alex Xu. Fixes #41123; bug not in any released Tor. --- diff --git a/src/core/or/relay.c b/src/core/or/relay.c index 7a2ddef4a6..9c98796c50 100644 --- a/src/core/or/relay.c +++ b/src/core/or/relay.c @@ -626,6 +626,9 @@ relay_send_command_from_edge_,(streamid_t stream_id, circuit_t *orig_circ, msg.length = payload_len; msg.body = (const uint8_t *) payload; msg_body_len = msg.length; + // If this cell should be RELAY_EARLY, we'll change the type + // later in this function. + msg.is_relay_early = false; if (relay_msg_encode_cell(cell_format, &msg, &cell) < 0) { // We already called IF_BUG_ONCE in relay_msg_encode_cell.