diff options
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); |