From: Yawning Angel Date: Thu, 2 Apr 2015 12:36:19 +0000 (+0000) Subject: Treat empty introduction points sections as missing. X-Git-Tag: tor-0.2.4.27~2^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7b5f558da4542ecce992a8bdb65851fd4a1713bc;p=thirdparty%2Ftor.git Treat empty introduction points sections as missing. Found by DonnchaC. --- diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index d1b49411cd..d1f8b1af99 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,