diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-02-15 18:20:46 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-02-15 18:20:46 -0500 |
commit | 59fc77e29b17840bf403d9ee9245846ad807b12d (patch) | |
tree | b5f4ec30176dcf529cbdb0addc4a0473b40a82d0 /src/or/buffers.c | |
parent | e6e929f5cf5d548d64c4400c0a5036d16b8c4046 (diff) | |
download | tor-59fc77e29b17840bf403d9ee9245846ad807b12d.tar.gz tor-59fc77e29b17840bf403d9ee9245846ad807b12d.zip |
Fix a bug that roger found in the wide_circ_id code
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r-- | src/or/buffers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index 33ea978daa..b54584fb4a 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -1056,7 +1056,7 @@ fetch_var_cell_from_buf(buf_t *buf, var_cell_t **out, int linkproto) *out = NULL; if (buf->datalen < header_len) return 0; - peek_from_buf(hdr, sizeof(hdr), buf); + peek_from_buf(hdr, header_len, buf); command = get_uint8(hdr + circ_id_len); if (!(cell_command_is_var_length(command, linkproto))) |