diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-08-13 19:55:08 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-08-13 19:55:08 +0000 |
commit | 2d07cce67f0a482cad2dc099510963f3f0c9bcf5 (patch) | |
tree | 5ce4f01186663ff349ae9ab52904e70ece266763 /src | |
parent | 89c65f2a4e833c5ff814f1a2be127e80785aa81c (diff) | |
download | tor-2d07cce67f0a482cad2dc099510963f3f0c9bcf5.tar.gz tor-2d07cce67f0a482cad2dc099510963f3f0c9bcf5.zip |
r14536@catbus: nickm | 2007-08-13 15:54:17 -0400
Make voting actually function.
svn:r11088
Diffstat (limited to 'src')
-rw-r--r-- | src/or/dirserv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index a73c450897..e481723f2e 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1967,8 +1967,8 @@ generate_networkstatus_vote_obj(crypto_pk_env_t *private_key, smartlist_free(routers); digestmap_free(omit_as_sybil, NULL); - tor_assert(v3_out); - memset(v3_out, 0, sizeof(networkstatus_vote_t)); + v3_out = tor_malloc_zero(sizeof(networkstatus_vote_t)); + v3_out->is_vote = 1; dirvote_get_preferred_voting_intervals(&timing); v3_out->published = now; |