aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2015-04-02 12:36:19 +0000
committerNick Mathewson <nickm@torproject.org>2015-04-06 09:20:46 -0400
commit7b5f558da4542ecce992a8bdb65851fd4a1713bc (patch)
treea33243ef9e052b712f1e70dbd46efd9010ed094a
parent49ddd92c115c6943c4602d44f52c22b6f47698e8 (diff)
downloadtor-7b5f558da4542ecce992a8bdb65851fd4a1713bc.tar.gz
tor-7b5f558da4542ecce992a8bdb65851fd4a1713bc.zip
Treat empty introduction points sections as missing.
Found by DonnchaC.
-rw-r--r--src/or/rendcommon.c2
1 files changed, 1 insertions, 1 deletions
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,