Browse Source

Treat empty introduction points sections as missing.

Found by DonnchaC.
Yawning Angel 9 years ago
parent
commit
7b5f558da4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/rendcommon.c

+ 1 - 1
src/or/rendcommon.c

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