summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-08-19 02:55:36 +0000
committerRoger Dingledine <arma@torproject.org>2007-08-19 02:55:36 +0000
commitc054f75dfa15a78b4406f1719921e2fd5c4189d0 (patch)
tree5626c9a0a2af1bd3674b78685ce8d87409dd3c80 /src
parentc0ea203c0c36a1c1c7db28e09f0ab41de1be7d86 (diff)
downloadtor-c054f75dfa15a78b4406f1719921e2fd5c4189d0.tar.gz
tor-c054f75dfa15a78b4406f1719921e2fd5c4189d0.zip
backport r11171
svn:r11173
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index fcd0430cfe..7b7c456d63 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -3470,6 +3470,13 @@ parse_dir_server_line(const char *line, int validate_only)
log_warn(LD_CONFIG, "Key digest for DirServer is wrong length.");
goto err;
}
+ if (!strcmp(fingerprint, "E623F7625FBE0C87820F11EC5F6D5377ED816294")) {
+ /* a known bad fingerprint. refuse to use it. */
+ log_warn(LD_CONFIG, "Dangerous dirserver line. To correct, erase your "
+ "torrc file (%s), or reinstall Tor and use the default torrc.",
+ get_torrc_fname());
+ goto err;
+ }
if (base16_decode(digest, DIGEST_LEN, fingerprint, HEX_DIGEST_LEN)<0) {
log_warn(LD_CONFIG, "Unable to decode DirServer key digest.");
goto err;