]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
rendclient: use ptrdiff, not off_t, for offset of DH field.
authorNick Mathewson <nickm@torproject.org>
Wed, 4 Sep 2019 14:59:18 +0000 (10:59 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 4 Sep 2019 16:06:27 +0000 (12:06 -0400)
The off_t type is only useful for offsets on the filesystem.  For
in-memory offsets, use ptrdiff_t.

src/feature/rend/rendclient.c

index 5bdd4d453ee825c13f1af5530861591d42dc7800..2540066dfc4a78c936ea43768f5607be70f9cc3a 100644 (file)
@@ -119,7 +119,7 @@ rend_client_send_introduction(origin_circuit_t *introcirc,
   char tmp[RELAY_PAYLOAD_SIZE];
   rend_cache_entry_t *entry = NULL;
   crypt_path_t *cpath;
-  off_t dh_offset;
+  ptrdiff_t dh_offset;
   crypto_pk_t *intro_key = NULL;
   int status = 0;
   const char *onion_address;