mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
and another byte counting error.
svn:r4902
This commit is contained in:
parent
9b949cc1d2
commit
ae726e659e
@ -779,14 +779,14 @@ connection_edge_process_relay_cell_not_open(
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (rh->length >= answer_len+6)
|
if (rh->length >= answer_len+6)
|
||||||
ttl = (int)ntohl(get_uint32(cell->payload+RELAY_HEADER_SIZE+6));
|
ttl = (int)ntohl(get_uint32(cell->payload+RELAY_HEADER_SIZE+2+answer_len));
|
||||||
else
|
else
|
||||||
ttl = -1;
|
ttl = -1;
|
||||||
connection_ap_handshake_socks_resolved(conn,
|
connection_ap_handshake_socks_resolved(conn,
|
||||||
cell->payload[RELAY_HEADER_SIZE], /*answer_type*/
|
cell->payload[RELAY_HEADER_SIZE], /*answer_type*/
|
||||||
cell->payload[RELAY_HEADER_SIZE+1], /*answer_len*/
|
cell->payload[RELAY_HEADER_SIZE+1], /*answer_len*/
|
||||||
cell->payload+RELAY_HEADER_SIZE+2,
|
cell->payload+RELAY_HEADER_SIZE+2, /*answer*/
|
||||||
ttl); /* answer */
|
ttl);
|
||||||
connection_mark_unattached_ap(conn, END_STREAM_REASON_ALREADY_SOCKS_REPLIED);
|
connection_mark_unattached_ap(conn, END_STREAM_REASON_ALREADY_SOCKS_REPLIED);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user