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
David Goulet
Tor
Commits
e6fff723
Commit
e6fff723
authored
Jun 08, 2011
by
Sebastian Hahn
Browse files
Remove a few dead assignments during router parsing
parent
ff75e8b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/coverity_maint
View file @
e6fff723
o Code simplifications and refactoring:
- Remove some dead code as indicated by coverity.
- Remove a few dead assignments during router parsing. Found by coverity.
o Minor bugfixes:
- Add some forgotten return value checks during unit tests. Found
by coverity.
...
...
src/or/routerparse.c
View file @
e6fff723
...
...
@@ -1544,10 +1544,10 @@ router_parse_entry_from_string(const char *s, const char *end,
}
}
if
(
(
tok
=
find_opt_by_keyword
(
tokens
,
K_CACHES_EXTRA_INFO
))
)
if
(
find_opt_by_keyword
(
tokens
,
K_CACHES_EXTRA_INFO
))
router
->
caches_extra_info
=
1
;
if
(
(
tok
=
find_opt_by_keyword
(
tokens
,
K_ALLOW_SINGLE_HOP_EXITS
))
)
if
(
find_opt_by_keyword
(
tokens
,
K_ALLOW_SINGLE_HOP_EXITS
))
router
->
allow_single_hop_exits
=
1
;
if
((
tok
=
find_opt_by_keyword
(
tokens
,
K_EXTRA_INFO_DIGEST
)))
{
...
...
@@ -1560,7 +1560,7 @@ router_parse_entry_from_string(const char *s, const char *end,
}
}
if
(
(
tok
=
find_opt_by_keyword
(
tokens
,
K_HIDDEN_SERVICE_DIR
))
)
{
if
(
find_opt_by_keyword
(
tokens
,
K_HIDDEN_SERVICE_DIR
))
{
router
->
wants_to_be_hs_dir
=
1
;
}
...
...
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