summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-19 12:22:39 -0400
committerNick Mathewson <nickm@torproject.org>2018-07-19 12:22:39 -0400
commitc1092e9aab3aac5c26512872e80a53728bc0fdbc (patch)
tree313fa16a84b6e012c10d7c59f651fd9eea0ecddd /src
parent7253603e6b32ceb5f766017d95ac0a05002b5ed7 (diff)
parentc9de65f96685fd54029f284a043cefd970061956 (diff)
downloadtor-c1092e9aab3aac5c26512872e80a53728bc0fdbc.tar.gz
tor-c1092e9aab3aac5c26512872e80a53728bc0fdbc.zip
Merge remote-tracking branch 'ahf-github/bugs/26780'
Diffstat (limited to 'src')
-rw-r--r--src/feature/nodelist/networkstatus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/nodelist/networkstatus.c b/src/feature/nodelist/networkstatus.c
index e9d36cbdcb..f8623f826c 100644
--- a/src/feature/nodelist/networkstatus.c
+++ b/src/feature/nodelist/networkstatus.c
@@ -2417,6 +2417,8 @@ get_net_param_from_list(smartlist_t *net_params, const char *param_name,
res = max_val;
}
+ tor_assert(res >= min_val);
+ tor_assert(res <= max_val);
return res;
}