aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitlist.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-09-15 05:53:00 +0000
committerRoger Dingledine <arma@torproject.org>2006-09-15 05:53:00 +0000
commitc22dc94fe6498a28c98f1f84e328d197472e4436 (patch)
tree1f904f0c2b751415d3e5fab8a1361f99a7e01ab7 /src/or/circuitlist.c
parent769f9201a68387c2cdf03e1efd28399c93bb2bdf (diff)
downloadtor-c22dc94fe6498a28c98f1f84e328d197472e4436.tar.gz
tor-c22dc94fe6498a28c98f1f84e328d197472e4436.zip
make my bandwidth exercises actually happen
svn:r8400
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r--src/or/circuitlist.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index d2f98c4260..dba7864861 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -672,7 +672,10 @@ circuit_get_next_by_pk_and_purpose(origin_circuit_t *start,
continue;
if (circ->purpose != purpose)
continue;
- if (!memcmp(TO_ORIGIN_CIRCUIT(circ)->rend_pk_digest, digest, DIGEST_LEN))
+ if (!digest)
+ return TO_ORIGIN_CIRCUIT(circ);
+ else if (!memcmp(TO_ORIGIN_CIRCUIT(circ)->rend_pk_digest,
+ digest, DIGEST_LEN))
return TO_ORIGIN_CIRCUIT(circ);
}
return NULL;