diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-08-15 17:57:47 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-08-15 17:57:47 +0000 |
commit | 717f3b8a1239fe1e72afd76002470969730cd2bc (patch) | |
tree | eb89a950015509a004d073267b672e6081976fe2 | |
parent | e10041447c5ceee91674dafac048ca58b5885750 (diff) | |
download | tor-717f3b8a1239fe1e72afd76002470969730cd2bc.tar.gz tor-717f3b8a1239fe1e72afd76002470969730cd2bc.zip |
r14047@Kushana: nickm | 2007-08-15 13:57:39 -0400
fix a really nasty bug in v3 authorities: only set v3_digest in trusted_dir_server_t for v3 authorities.
svn:r11124
-rw-r--r-- | src/or/routerlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index f2d8b438f6..f7caaa024b 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -3799,7 +3799,7 @@ add_trusted_dir_server(const char *nickname, const char *address, ent->is_running = 1; ent->type = type; memcpy(ent->digest, digest, DIGEST_LEN); - if (v3_auth_digest) + if (v3_auth_digest && (type & V3_AUTHORITY)) memcpy(ent->v3_identity_digest, v3_auth_digest, DIGEST_LEN); dlen = 64 + strlen(hostname) + (nickname?strlen(nickname):0); |