ソースを参照

Make missing reason_phrase into a BUG().

Nick Mathewson 6 年 前
コミット
2385e3f667
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/or/directory.c

+ 1 - 1
src/or/directory.c

@@ -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";
   }
   }