aboutsummaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorDonncha O'Cearbhaill <donncha@donncha.is>2015-08-03 17:33:28 +0200
committerDonncha O'Cearbhaill <donncha@donncha.is>2015-09-08 12:34:05 +0200
commit5dc2cbafefa9c15fd5c96707b1e5bde0c59b6132 (patch)
tree680628ca9dfc49d8afd88931503b21ad13a8025a /src/or/control.c
parent580673cf9487389a55c9c0efea54b818ec272d9c (diff)
downloadtor-5dc2cbafefa9c15fd5c96707b1e5bde0c59b6132.tar.gz
tor-5dc2cbafefa9c15fd5c96707b1e5bde0c59b6132.zip
Specify descriptor cache type in rend_cache_lookup_entry()
Adds an Enum which represents the different types of rendezvous descriptor caches. This argument is passed in each call to rend_cache_lookup_entry() to specify lookup in the client-side or service-side descriptor caches.
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 900162e3e2..c2240bf38c 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -1920,7 +1920,7 @@ getinfo_helper_dir(control_connection_t *control_conn,
return -1;
}
- if (!rend_cache_lookup_entry(question, -1, &e, 0)) {
+ if (!rend_cache_lookup_entry(question, -1, &e, REND_CACHE_TYPE_CLIENT)) {
/* Descriptor found in cache */
*answer = tor_strdup(e->desc);
} else {
@@ -1936,7 +1936,7 @@ getinfo_helper_dir(control_connection_t *control_conn,
return -1;
}
- if (!rend_cache_lookup_entry(question, -1, &e, 1)) {
+ if (!rend_cache_lookup_entry(question, -1, &e, REND_CACHE_TYPE_SERVICE)) {
/* Descriptor found in cache */
*answer = tor_strdup(e->desc);
} else {