diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-04-30 14:09:11 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-04-30 14:09:11 +0000 |
commit | 43385b9bc9f658b2686e0a897a33c98a8b098716 (patch) | |
tree | 63473578ab953b49f6bfc47a378acf29bd482e76 /src/or/circuitlist.c | |
parent | 420df2ce15172d2738758debd6135ce1accb267b (diff) | |
download | tor-43385b9bc9f658b2686e0a897a33c98a8b098716.tar.gz tor-43385b9bc9f658b2686e0a897a33c98a8b098716.zip |
r12565@catbus: nickm | 2007-04-30 10:09:07 -0400
Misc cleanup and bulletproofing on r10056.
svn:r10058
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r-- | src/or/circuitlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 839d2b6dc7..07fca3d156 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -849,7 +849,7 @@ circuit_get_cpath_len(origin_circuit_t *circ) crypt_path_t * circuit_get_cpath_hop(origin_circuit_t *circ, int hopnum) { - if (circ && circ->cpath) { + if (circ && circ->cpath && hopnum > 0) { crypt_path_t *cpath, *cpath_next = NULL; for (cpath = circ->cpath; cpath_next != circ->cpath; cpath = cpath_next) { cpath_next = cpath->next; |