diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-09-04 10:59:18 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-09-04 12:06:27 -0400 |
commit | ec724fe8c8baf245a4cada85bb8b8b4832f6e725 (patch) | |
tree | 76e36221a65df3c80407eea483dec3b9ff57ec3c /src/feature/rend/rendclient.c | |
parent | b39ee42904d9210ff3b6872d69535d32f588f907 (diff) | |
download | tor-ec724fe8c8baf245a4cada85bb8b8b4832f6e725.tar.gz tor-ec724fe8c8baf245a4cada85bb8b8b4832f6e725.zip |
rendclient: use ptrdiff, not off_t, for offset of DH field.
The off_t type is only useful for offsets on the filesystem. For
in-memory offsets, use ptrdiff_t.
Diffstat (limited to 'src/feature/rend/rendclient.c')
-rw-r--r-- | src/feature/rend/rendclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/rend/rendclient.c b/src/feature/rend/rendclient.c index 5bdd4d453e..2540066dfc 100644 --- a/src/feature/rend/rendclient.c +++ b/src/feature/rend/rendclient.c @@ -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; |