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.
This commit is contained in:
Nick Mathewson
2019-09-04 10:59:18 -04:00
parent b39ee42904
commit ec724fe8c8
+1 -1
View 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;