diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-03-18 14:31:50 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-03-18 14:31:50 -0400 |
commit | 173efa10515e23b45e37f96a3755a2f16411a71a (patch) | |
tree | 795ae034c28cef93586bca971b8df48db1948bcf /src | |
parent | 57ffef3f89312be06aea7819cc0a6c6b9dc66452 (diff) | |
parent | b9037521c6ba333178c3f3197c39be360aba229c (diff) | |
download | tor-173efa10515e23b45e37f96a3755a2f16411a71a.tar.gz tor-173efa10515e23b45e37f96a3755a2f16411a71a.zip |
Merge remote-tracking branch 'public/bug8059' into maint-0.2.4
Diffstat (limited to 'src')
-rw-r--r-- | src/or/channeltls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/channeltls.c b/src/or/channeltls.c index 1035a14127..60693daeb2 100644 --- a/src/or/channeltls.c +++ b/src/or/channeltls.c @@ -1208,7 +1208,7 @@ channel_tls_process_versions_cell(var_cell_t *cell, channel_tls_t *chan) tor_assert(chan->conn->handshake_state); end = cell->payload + cell->payload_len; - for (cp = cell->payload; cp+1 < end; ++cp) { + for (cp = cell->payload; cp+1 < end; cp += 2) { uint16_t v = ntohs(get_uint16(cp)); if (is_or_protocol_version_known(v) && v > highest_supported_version) highest_supported_version = v; |