mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge branch 'maint-0.3.2'
This commit is contained in:
@@ -50,7 +50,13 @@ mock_decrypt_desc_layer(const hs_descriptor_t *desc,
|
||||
*decrypted_out = tor_memdup_nulterm(
|
||||
encrypted_blob + HS_DESC_ENCRYPTED_SALT_LEN,
|
||||
encrypted_blob_size - overhead);
|
||||
return strlen(*decrypted_out);
|
||||
size_t result = strlen(*decrypted_out);
|
||||
if (result) {
|
||||
return result;
|
||||
} else {
|
||||
tor_free(*decrypted_out);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user