diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-09-14 08:34:58 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-14 08:34:58 -0400 |
commit | 2385e3f667e329f60e9bde91117fedff9f9cff6c (patch) | |
tree | 2405dca4ca8579ee86140974b13336817afad825 | |
parent | 771fb7e7baa789c55ba15c4c26c8a4889ff9fe8d (diff) | |
download | tor-2385e3f667e329f60e9bde91117fedff9f9cff6c.tar.gz tor-2385e3f667e329f60e9bde91117fedff9f9cff6c.zip |
Make missing reason_phrase into a BUG().
-rw-r--r-- | src/or/directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"; } |