]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Treat empty introduction points sections as missing.
authorYawning Angel <yawning@schwanenlied.me>
Thu, 2 Apr 2015 12:36:19 +0000 (12:36 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 6 Apr 2015 13:20:46 +0000 (09:20 -0400)
Found by DonnchaC.

src/or/rendcommon.c

index d1b49411cd2538f28467aabe3d0f7fb5dc1eb5bf..d1f8b1af99b26c6cff6d3debb719201c4282777c 100644 (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,