summaryrefslogtreecommitdiff
path: root/changes
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-08-04 12:17:53 -0400
committerNick Mathewson <nickm@torproject.org>2017-08-04 12:17:53 -0400
commit3b646bf887f95c7f26ca05fb7fb3af10806b1328 (patch)
treece2c13e26ed67f30ab2494ccf25780db071f845c /changes
parent32b4fd5be9574a1f17947416889be9067db483b7 (diff)
downloadtor-3b646bf887f95c7f26ca05fb7fb3af10806b1328.tar.gz
tor-3b646bf887f95c7f26ca05fb7fb3af10806b1328.zip
Fix ntohs() that should have been htons()
Fixes bug 23106; bugfix on 0.2.4.8-alpha. Fortunately, we only support big-endian and little-endian platforms, and on both of those, hton*() and ntoh*() behave the same. And if we did start to support middle endian systems (haha, no), most of _those_ have hton*(x) == ntoh*(x) too.
Diffstat (limited to 'changes')
-rw-r--r--changes/bug231065
1 files changed, 5 insertions, 0 deletions
diff --git a/changes/bug23106 b/changes/bug23106
new file mode 100644
index 0000000000..d4ced15f82
--- /dev/null
+++ b/changes/bug23106
@@ -0,0 +1,5 @@
+ o Minor bugfixes (code correctness):
+ - Call htons() in extend_cell_format() for encoding a 16-bit
+ value. Previously we used ntohs(), which happens to behave the
+ same on all the platforms we support, but which isn't really
+ correct. Fixes bug 23106; bugfix on 0.2.4.8-alpha.