diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-04-11 17:35:19 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-04-11 17:35:19 -0400 |
commit | 7c98105d5617a0423c2d45941e7c0906de649128 (patch) | |
tree | 2e40f4fe245b8d5bec26b0ac9d18ae1f38fa3100 /src/feature/rend | |
parent | adeecce53b68eb7183bf8d5b3051303b5f2f1d45 (diff) | |
download | tor-7c98105d5617a0423c2d45941e7c0906de649128.tar.gz tor-7c98105d5617a0423c2d45941e7c0906de649128.zip |
On failure to create extend info for an introduction point, don't leak.
This is CID 1438152. No backport needed: this path is already
inside a BUG() guard.
Diffstat (limited to 'src/feature/rend')
-rw-r--r-- | src/feature/rend/rendservice.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/feature/rend/rendservice.c b/src/feature/rend/rendservice.c index 57475a64b0..996e7b9a28 100644 --- a/src/feature/rend/rendservice.c +++ b/src/feature/rend/rendservice.c @@ -4227,6 +4227,7 @@ rend_consider_services_intro_points(time_t now) * directly ourselves. */ intro->extend_info = extend_info_from_node(node, 0); if (BUG(intro->extend_info == NULL)) { + tor_free(intro); break; } intro->intro_key = crypto_pk_new(); |