diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-08-14 20:19:46 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-08-14 20:19:46 +0000 |
commit | 2a31f09af67a58fa6103ac0a46b3bbf154917649 (patch) | |
tree | e690f08185c966be30db8ea875b0d1d94e0d60bb /src | |
parent | 42fa1de58514023a0a16f30745120ec6f4e35fed (diff) | |
download | tor-2a31f09af67a58fa6103ac0a46b3bbf154917649.tar.gz tor-2a31f09af67a58fa6103ac0a46b3bbf154917649.zip |
r14018@Kushana: nickm | 2007-08-14 15:39:35 -0400
Resolve XXXX020s in config.c
svn:r11108
Diffstat (limited to 'src')
-rw-r--r-- | src/or/config.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/or/config.c b/src/or/config.c index a12ca86ef6..804ec574f7 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -760,10 +760,7 @@ config_free_all(void) const char * safe_str(const char *address) { - if (!address) { /* XXX020 eventually turn this into an assert */ - log_warn(LD_BUG, "safe_str() called with NULL address."); - return "EMPTY"; - } + tor_assert(address); if (get_options()->SafeLogging) return "[scrubbed]"; else @@ -2640,8 +2637,11 @@ options_validate(or_options_t *old_options, or_options_t *options, "extra-info documents. Setting DownloadExtraInfo."); options->DownloadExtraInfo = 1; } - /* XXXX020 Check that at least one of Bridge/HS/V1/V2/V2{AuthoritativeDir} - * is set. */ + if (!(options->BridgeAuthoritativeDir || options->HSAuthoritativeDir || + options->V1AuthoritativeDir || options->V2AuthoritativeDir || + options->V3AuthoritativeDir)) + REJECT("AuthoritativeDir is set, but none of " + "(Bridge/HS/V1/V2/V3)AuthoriativeDir is set."); } if (options->AuthoritativeDir && !options->DirPort) |