Commit 2385e3f6 authored by Nick Mathewson's avatar Nick Mathewson 🥔
Browse files

Make missing reason_phrase into a BUG().

parent 771fb7e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3482,7 +3482,7 @@ write_http_status_line(dir_connection_t *conn, int status,
  char *buf = NULL;
  char *datestring = NULL;

  if (!reason_phrase) { /* bullet-proofing */
  IF_BUG_ONCE(!reason_phrase) { /* bullet-proofing */
    reason_phrase = "unspecified";
  }