mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Treat empty introduction points sections as missing.
Found by DonnchaC.
This commit is contained in:
committed by
Nick Mathewson
parent
49ddd92c11
commit
7b5f558da4
+1
-1
@@ -1301,7 +1301,7 @@ rend_cache_store_v2_desc_as_client(const char *desc,
|
||||
goto err;
|
||||
}
|
||||
/* Decode/decrypt introduction points. */
|
||||
if (intro_content) {
|
||||
if (intro_content && intro_size > 0) {
|
||||
int n_intro_points;
|
||||
if (rend_query->auth_type != REND_NO_AUTH &&
|
||||
!tor_mem_is_zero(rend_query->descriptor_cookie,
|
||||
|
||||
Reference in New Issue
Block a user