[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Fix a bug that roger found in the wide_circ_id code



commit 59fc77e29b17840bf403d9ee9245846ad807b12d
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Fri Feb 15 18:20:46 2013 -0500

    Fix a bug that roger found in the wide_circ_id code
---
 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 33ea978..b54584f 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)))

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits