mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
Fix a bug that roger found in the wide_circ_id code
This commit is contained in:
parent
e6e929f5cf
commit
59fc77e29b
1 changed files with 1 additions and 1 deletions
|
@ -1056,7 +1056,7 @@ fetch_var_cell_from_buf(buf_t *buf, var_cell_t **out, int linkproto)
|
||||||
*out = NULL;
|
*out = NULL;
|
||||||
if (buf->datalen < header_len)
|
if (buf->datalen < header_len)
|
||||||
return 0;
|
return 0;
|
||||||
peek_from_buf(hdr, sizeof(hdr), buf);
|
peek_from_buf(hdr, header_len, buf);
|
||||||
|
|
||||||
command = get_uint8(hdr + circ_id_len);
|
command = get_uint8(hdr + circ_id_len);
|
||||||
if (!(cell_command_is_var_length(command, linkproto)))
|
if (!(cell_command_is_var_length(command, linkproto)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue