Commit d461799f authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

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."
parent 0b4b5131
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)