[tor-commits] [tor/master] Treat empty introduction points sections as missing.

nickm at torproject.org nickm at torproject.org
Mon Apr 6 13:26:40 UTC 2015


commit 7b5f558da4542ecce992a8bdb65851fd4a1713bc
Author: Yawning Angel <yawning at schwanenlied.me>
Date:   Thu Apr 2 12:36:19 2015 +0000

    Treat empty introduction points sections as missing.
    
    Found by DonnchaC.
---
 src/or/rendcommon.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index d1b4941..d1f8b1a 100644
--- a/src/or/rendcommon.c
+++ b/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,





More information about the tor-commits mailing list