Explorar o código

Treat empty introduction points sections as missing.

Found by DonnchaC.
Yawning Angel %!s(int64=10) %!d(string=hai) anos
pai
achega
7b5f558da4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,