[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/maint-0.2.5] Treat empty introduction points sections as missing.
commit 7b5f558da4542ecce992a8bdb65851fd4a1713bc
Author: Yawning Angel <yawning@xxxxxxxxxxxxxxx>
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,
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits