From 2385e3f667e329f60e9bde91117fedff9f9cff6c Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 14 Sep 2017 08:34:58 -0400 Subject: [PATCH] Make missing reason_phrase into a BUG(). --- src/or/directory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/or/directory.c b/src/or/directory.c index ba94c97471..d6b98ed5dd 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -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"; }