[tor-commits] [tor/master] rendclient: use ptrdiff, not off_t, for offset of DH field.
asn at torproject.org
asn at torproject.org
Thu Sep 5 14:09:38 UTC 2019
commit ec724fe8c8baf245a4cada85bb8b8b4832f6e725
Author: Nick Mathewson <nickm at torproject.org>
Date: Wed Sep 4 10:59:18 2019 -0400
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.
---
src/feature/rend/rendclient.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/feature/rend/rendclient.c b/src/feature/rend/rendclient.c
index 5bdd4d453..2540066df 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;
More information about the tor-commits
mailing list