Treat empty introduction points sections as missing.

Found by DonnchaC.
This commit is contained in:
Yawning Angel 2015-04-02 12:36:19 +00:00 committed by Nick Mathewson
parent 49ddd92c11
commit 7b5f558da4
1 changed files with 1 additions and 1 deletions

View File

@ -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,