[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r11124: fix a really nasty bug in v3 authorities: only set v3_digest (in tor/trunk: . src/or)
Author: nickm
Date: 2007-08-15 13:57:47 -0400 (Wed, 15 Aug 2007)
New Revision: 11124
Modified:
tor/trunk/
tor/trunk/src/or/routerlist.c
Log:
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.
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r14047] on c95137ef-5f19-0410-b913-86e773d04f59
Modified: tor/trunk/src/or/routerlist.c
===================================================================
--- tor/trunk/src/or/routerlist.c 2007-08-15 17:07:27 UTC (rev 11123)
+++ tor/trunk/src/or/routerlist.c 2007-08-15 17:57:47 UTC (rev 11124)
@@ -3799,7 +3799,7 @@
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);