aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-27 09:27:00 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-27 09:27:00 -0400
commit52316f9969a049ec5e2d72c2f0002f0ed32b60cb (patch)
treea9ed713d2fe2635f775d07604f1912557b3b89de /src/or/directory.c
parent0f6420e53aa33a9e754f1d6c3c5bec12ac65f153 (diff)
downloadtor-52316f9969a049ec5e2d72c2f0002f0ed32b60cb.tar.gz
tor-52316f9969a049ec5e2d72c2f0002f0ed32b60cb.zip
Include UPLOAD_RENDDESC_V2 in PURPOSE_IS_UPLOAD
This was only used in one place before, and it's safe to update it.
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 7767bb99d1..872cce2c9e 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -1171,9 +1171,7 @@ directory_request_set_payload(directory_request_t *req,
const char *payload,
size_t payload_len)
{
- tor_assert(DIR_PURPOSE_IS_UPLOAD(req->dir_purpose) ||
- // XXXX why not included?
- req->dir_purpose == DIR_PURPOSE_UPLOAD_RENDDESC_V2);
+ tor_assert(DIR_PURPOSE_IS_UPLOAD(req->dir_purpose));
req->payload = payload;
req->payload_len = payload_len;