diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-10-26 22:15:13 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-10-26 22:40:41 -0400 |
commit | caa141617f324138b329051520dcdf0d9289d618 (patch) | |
tree | 35b6cd95f2755bf80cca3790f9fb4b03c655ca74 /src/or/dirserv.c | |
parent | 98cd8c5d167450733fcef804838919e528e13ad3 (diff) | |
download | tor-caa141617f324138b329051520dcdf0d9289d618.tar.gz tor-caa141617f324138b329051520dcdf0d9289d618.zip |
Fix dead code found by Coverity (CID 419).
This was left over from an early draft of the microdescriptor code; it
began to populate the signatures array of a networkstatus vote, even
though there's no actual need to do that for a vote.
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 6ce6a461e1..d9a5decd6e 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -2609,11 +2609,6 @@ dirserv_generate_networkstatus_vote_obj(crypto_pk_env_t *private_key, voter->nickname = tor_strdup(options->Nickname); memcpy(voter->identity_digest, identity_digest, DIGEST_LEN); voter->sigs = smartlist_create(); - { - document_signature_t *sig = tor_malloc_zero(sizeof(document_signature_t)); - memcpy(sig->identity_digest, identity_digest, DIGEST_LEN); - memcpy(sig->signing_key_digest, signing_key_digest, DIGEST_LEN); - } voter->address = hostname; voter->addr = addr; voter->dir_port = options->DirPort; |