diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-06-18 14:46:25 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-06-18 14:46:25 -0400 |
commit | cee6a991d2185b6bf600cda092c18eba83360efb (patch) | |
tree | d861b1886a8b4a044230e3749c87bf31787fdfc9 | |
parent | fd9ba5ed560d3be63ce0eb898ea73dff2b9b9ae7 (diff) | |
parent | 7c4544e5a4780706dee65d2a3ff8c70000b55952 (diff) | |
download | tor-cee6a991d2185b6bf600cda092c18eba83360efb.tar.gz tor-cee6a991d2185b6bf600cda092c18eba83360efb.zip |
Merge remote-tracking branch 'origin/maint-0.2.4' into release-0.2.4
-rw-r--r-- | src/or/rendcommon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index cf97a9d13f..d1b49411cd 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -1081,6 +1081,7 @@ rend_cache_store(const char *desc, size_t desc_len, int published, "attempt to improve reliability, but it could also be an " "attempt to do a guard enumeration attack. Rejecting.", safe_str_client(query)); + rend_service_descriptor_free(parsed); return -2; } tor_snprintf(key, sizeof(key), "0%s", query); @@ -1336,6 +1337,8 @@ rend_cache_store_v2_desc_as_client(const char *desc, "attempt to improve reliability, but it could also be an " "attempt to do a guard enumeration attack. Rejecting.", safe_str_client(rend_query->onion_address)); + retval = -2; + goto err; } } else { log_info(LD_REND, "Descriptor does not contain any introduction points."); |