aboutsummaryrefslogtreecommitdiff
path: root/src/or/hibernate.c
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2009-04-23 22:04:10 +0000
committerSebastian Hahn <sebastian@torproject.org>2009-04-23 22:04:10 +0000
commit5675be39a0bd08ac2e5793ae2a688a39f3755c91 (patch)
tree986e22e5e0fcaefda7062aee41ca9d7ac592eaf1 /src/or/hibernate.c
parentf33f2e95913f4d444bb469ed92dee0d2dd3f7575 (diff)
downloadtor-5675be39a0bd08ac2e5793ae2a688a39f3755c91.tar
tor-5675be39a0bd08ac2e5793ae2a688a39f3755c91.tar.gz
Return -1 in the error case from read_bandwidth_usage.
svn:r19367
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r--src/or/hibernate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c
index c0a750308..d62036afb 100644
--- a/src/or/hibernate.c
+++ b/src/or/hibernate.c
@@ -580,7 +580,7 @@ read_bandwidth_usage(void)
}
if (!state)
- return 0;
+ return -1;
/* Okay; it looks like the state file is more up-to-date than the
* bw_accounting file, or the bw_accounting file is nonexistant,