]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Re-run latest git trunnel to get fix from teor for #13577
authorNick Mathewson <nickm@torproject.org>
Fri, 31 Oct 2014 12:56:14 +0000 (08:56 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 31 Oct 2014 12:56:14 +0000 (08:56 -0400)
src/ext/trunnel/trunnel.c

index da4885ca0159ef628a027f158d1013ff9e1a36cf..a18d67584e7c13ee84aee1bb918e1351107fb178 100644 (file)
@@ -1,4 +1,4 @@
-/* trunnel.c -- copied from Trunnel v1.2
+/* trunnel.c -- copied from Trunnel v1.4-pre
  * https://gitweb.torproject.org/trunnel.git
  * You probably shouldn't edit this file.
  */
@@ -75,7 +75,8 @@ uint64_t
 trunnel_htonll(uint64_t a)
 {
 #ifdef IS_LITTLE_ENDIAN
-  return trunnel_htonl(a>>32) | (((uint64_t)trunnel_htonl(a))<<32);
+  return trunnel_htonl((uint32_t)(a>>32))
+    | (((uint64_t)trunnel_htonl((uint32_t)a))<<32);
 #else
   return a;
 #endif