summaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-07-06 09:32:22 -0400
committerNick Mathewson <nickm@torproject.org>2017-07-06 09:32:22 -0400
commit86eb63deb45f2d21375bee74ef4758c24974a97e (patch)
tree3ef5d4b9e9b2776304d845429693dbd7578902b8 /src/or/routerlist.c
parent720552b04c86e1b823d12bfde71ba052f4246e1c (diff)
parent994595ae5d0bc5e72bdeb9a2e7889b9f52b8b3c8 (diff)
downloadtor-86eb63deb45f2d21375bee74ef4758c24974a97e.tar.gz
tor-86eb63deb45f2d21375bee74ef4758c24974a97e.zip
Merge remote-tracking branch 'public/bug19648'
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 8adaaf6c05..49caa875fe 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -5055,8 +5055,9 @@ launch_descriptor_downloads(int purpose,
if (n_per_request > max_dl_per_req)
n_per_request = max_dl_per_req;
- if (n_per_request < MIN_DL_PER_REQUEST)
- n_per_request = MIN_DL_PER_REQUEST;
+ if (n_per_request < MIN_DL_PER_REQUEST) {
+ n_per_request = MIN(MIN_DL_PER_REQUEST, n_downloadable);
+ }
if (n_downloadable > n_per_request)
req_plural = rtr_plural = "s";