mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
3b646bf887
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.
6 lines
297 B
Plaintext
6 lines
297 B
Plaintext
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.
|