diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-11-02 11:56:02 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-11-02 11:56:02 -0500 |
commit | bbd8d071675c278571c804fd0a71b51e7dfa8d7e (patch) | |
tree | b2e13b638657ae8827ffb72c9b9f42cb97126f4b /src/or/circuitbuild.c | |
parent | ded33cb2c73151e2f02a8a1d520b54e4f1c14072 (diff) | |
download | tor-bbd8d071675c278571c804fd0a71b51e7dfa8d7e.tar.gz tor-bbd8d071675c278571c804fd0a71b51e7dfa8d7e.zip |
Apply new calloc coccinelle patch
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 44946d389c..42c4870e87 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -1548,7 +1548,7 @@ choose_good_exit_server_general(int need_uptime, int need_capacity) * -1 means "Don't use this router at all." */ the_nodes = nodelist_get_list(); - n_supported = tor_calloc(sizeof(int), smartlist_len(the_nodes)); + n_supported = tor_calloc(smartlist_len(the_nodes), sizeof(int)); SMARTLIST_FOREACH_BEGIN(the_nodes, const node_t *, node) { const int i = node_sl_idx; if (router_digest_is_me(node->identity)) { |