Commit ec724fe8 authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

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.
parent b39ee429
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;