[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Make missing reason_phrase into a BUG().



commit 2385e3f667e329f60e9bde91117fedff9f9cff6c
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Thu Sep 14 08:34:58 2017 -0400

    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 ba94c9747..d6b98ed5d 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";
   }
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits