aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-07-18 17:13:25 +0200
committerNick Mathewson <nickm@torproject.org>2010-07-18 17:13:25 +0200
commitd461799f0b5fe3b5a2c3a74db21d4a89b9b97424 (patch)
treeb1e6ef5313f42bda2f0728486d8a37da96e96bfe /src/or
parent0b4b51314f5cb0242e7a8fd3b87bc800cd04eacc (diff)
downloadtor-d461799f0b5fe3b5a2c3a74db21d4a89b9b97424.tar.gz
tor-d461799f0b5fe3b5a2c3a74db21d4a89b9b97424.zip
Fix getinfo_helper_networkstatus to return 0 on question-not-known
It erroneously returned -1 instead, which made it say "Internal error" rather than "Unrecognized key."
Diffstat (limited to 'src/or')
-rw-r--r--src/or/networkstatus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 4834d13764..232e02ae0d 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -2160,7 +2160,7 @@ getinfo_helper_networkstatus(control_connection_t *conn,
*answer = networkstatus_getinfo_by_purpose(question+11, time(NULL));
return *answer ? 0 : -1;
} else {
- return -1;
+ return 0;
}
if (status)