diff options
author | Muhammad Falak R Wani <falakreyaz@gmail.com> | 2016-10-05 01:32:58 +0530 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-10-05 13:06:27 -0400 |
commit | fdc0a660b476fea19d8b4f7739aba05704d25bbe (patch) | |
tree | df327cc8678bf59411a3bb5c546d90c197197eae /src/or/dircollate.c | |
parent | 684500519d5060fcbcc410a0e71d8d9a32fa8220 (diff) | |
download | tor-fdc0a660b476fea19d8b4f7739aba05704d25bbe.tar.gz tor-fdc0a660b476fea19d8b4f7739aba05704d25bbe.zip |
dircollate: Use correct tor_calloc args.
Flip the tor_calloc arguments in the call.
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Diffstat (limited to 'src/or/dircollate.c')
-rw-r--r-- | src/or/dircollate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dircollate.c b/src/or/dircollate.c index 756011b934..c6afd95926 100644 --- a/src/or/dircollate.c +++ b/src/or/dircollate.c @@ -87,7 +87,7 @@ dircollator_add_routerstatus(dircollator_t *dc, (void) vote; vote_routerstatus_t **vrs_lst = digestmap_get(dc->by_rsa_sha1, id); if (NULL == vrs_lst) { - vrs_lst = tor_calloc(sizeof(vote_routerstatus_t *), dc->n_votes); + vrs_lst = tor_calloc(dc->n_votes, sizeof(vote_routerstatus_t *)); digestmap_set(dc->by_rsa_sha1, id, vrs_lst); } tor_assert(vrs_lst[vote_num] == NULL); |