Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mike Perry
Tor
Commits
2a31f09a
Commit
2a31f09a
authored
Aug 14, 2007
by
Nick Mathewson
🎨
Browse files
r14018@Kushana: nickm | 2007-08-14 15:39:35 -0400
Resolve XXXX020s in config.c svn:r11108
parent
42fa1de5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/or/config.c
View file @
2a31f09a
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment