mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
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."
This commit is contained in:
parent
0b4b51314f
commit
d461799f0b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user