Make missing reason_phrase into a BUG().

This commit is contained in:
Nick Mathewson 2017-09-14 08:34:58 -04:00
parent 771fb7e7ba
commit 2385e3f667

View File

@ -3482,7 +3482,7 @@ write_http_status_line(dir_connection_t *conn, int status,
char *buf = NULL; char *buf = NULL;
char *datestring = NULL; char *datestring = NULL;
if (!reason_phrase) { /* bullet-proofing */ IF_BUG_ONCE(!reason_phrase) { /* bullet-proofing */
reason_phrase = "unspecified"; reason_phrase = "unspecified";
} }