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
3033f845
Commit
3033f845
authored
Jun 08, 2011
by
Sebastian Hahn
Browse files
Remove a dead variable in the heartbeat code
parent
3bf808c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/coverity_master
View file @
3033f845
o Minor bugfixes:
- Prevent using negative indices during unit test runs when read_all()
fails. Spotted by coverity. Bugfix on 0.2.3.1.
o Code simplifications and refactoring:
- Remove a dead variable in the heartbeat log code. Spotted by coverity.
src/or/status.c
View file @
3033f845
...
...
@@ -84,7 +84,6 @@ log_heartbeat(time_t now)
char
*
bw_rcvd
=
NULL
;
char
*
uptime
=
NULL
;
const
routerinfo_t
*
me
;
const
node_t
*
myself
;
or_options_t
*
options
=
get_options
();
(
void
)
now
;
...
...
@@ -94,7 +93,7 @@ log_heartbeat(time_t now)
if
(
!
(
me
=
router_get_my_routerinfo
()))
return
-
1
;
/* Something stinks, we won't even attempt this. */
else
if
(
!
(
myself
=
node_get_by_id
(
me
->
cache_info
.
identity_digest
))
)
if
(
!
node_get_by_id
(
me
->
cache_info
.
identity_digest
))
log_fn
(
LOG_NOTICE
,
LD_HEARTBEAT
,
"Heartbeat: It seems like we are not "
"in the cached consensus."
);
}
...
...
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