summaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2016-09-15 14:13:18 -0400
committerDavid Goulet <dgoulet@torproject.org>2016-11-04 10:32:50 -0400
commit3f29688bdff3d6aa0b47ee7080995f44dbb579de (patch)
tree00996e5852b4dfbc708eaa82834ea0d6cc11818b /src/or/directory.c
parent1263f74a12abfb7f3e9b9627fd1d37cb125b8429 (diff)
downloadtor-3f29688bdff3d6aa0b47ee7080995f44dbb579de.tar.gz
tor-3f29688bdff3d6aa0b47ee7080995f44dbb579de.zip
prop224: Use a const pointer for the cache lookup entry
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index a3aa276df7..75fc103577 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -3400,7 +3400,7 @@ handle_get_hs_descriptor_v3(dir_connection_t *conn,
const get_handler_args_t *args)
{
int retval;
- char *desc_str = NULL;
+ const char *desc_str = NULL;
const char *pubkey_str = NULL;
const char *url = args->url;
@@ -3434,8 +3434,6 @@ handle_get_hs_descriptor_v3(dir_connection_t *conn,
connection_write_to_buf(desc_str, strlen(desc_str), TO_CONN(conn));
done:
- tor_free(desc_str);
-
return 0;
}