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:
Nick Mathewson 2010-07-18 17:13:25 +02:00
parent 0b4b51314f
commit d461799f0b

View File

@ -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)