diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-11-03 14:02:47 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-11-04 00:24:15 -0500 |
commit | b10e5ac7b86c459a62cfc316c8be87143d2a87e4 (patch) | |
tree | 871d286e6bf3dcc2198454ddf90ecfd308bd6d2d /src/or/directory.c | |
parent | 9e2608b0d35e7e890e53f83e40675851caff4a14 (diff) | |
download | tor-b10e5ac7b86c459a62cfc316c8be87143d2a87e4.tar.gz tor-b10e5ac7b86c459a62cfc316c8be87143d2a87e4.zip |
Check descriptor ID in addition to HS ID when saving a v2 hs descriptor
Fixes bug 13214; reported by 'special'.
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 298271f366..d429b7bc28 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -2082,7 +2082,8 @@ connection_dir_client_reached_eof(dir_connection_t *conn) (int)body_len, status_code, escaped(reason)); switch (status_code) { case 200: - switch (rend_cache_store_v2_desc_as_client(body, conn->rend_data)) { + switch (rend_cache_store_v2_desc_as_client(body, + conn->requested_resource, conn->rend_data)) { case RCS_BADDESC: case RCS_NOTDIR: /* Impossible */ log_warn(LD_REND,"Fetching v2 rendezvous descriptor failed. " |