Prechádzať zdrojové kódy

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.
Nick Mathewson 4 rokov pred
rodič
commit
ec724fe8c8
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/feature/rend/rendclient.c

+ 1 - 1
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;