aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-06-18 11:54:57 -0400
committerNick Mathewson <nickm@torproject.org>2013-06-18 11:54:57 -0400
commit60d633c73a71d9ba514d4250fe00da5173e9968a (patch)
tree5201013d0654d61b95e1fc684db95295905d35a7 /src
parentc37fdc2eef0ccfeff56df5a9b7dfae9396fc643c (diff)
downloadtor-60d633c73a71d9ba514d4250fe00da5173e9968a.tar
tor-60d633c73a71d9ba514d4250fe00da5173e9968a.tar.gz
Fix some problems with the bug9002 fix.
Fixes bug 9090; bug not in any released Tor.
Diffstat (limited to 'src')
-rw-r--r--src/or/rendcommon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index 812fce973..76786e0fd 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.");