log_error(): Treat LOG_LEVEL_FATAL as fatal even when --stfu is being used
authorFabian Keil <fk@fabiankeil.de>
Mon, 8 Feb 2021 14:58:03 +0000 (15:58 +0100)
committerFabian Keil <fk@fabiankeil.de>
Sun, 21 Feb 2021 15:09:20 +0000 (16:09 +0100)
Reported by: Joshua Rogers (Opera).

errlog.c

index e9aba27..a9cfb8c 100644 (file)
--- a/errlog.c
+++ b/errlog.c
@@ -683,6 +683,10 @@ void log_error(int loglevel, const char *fmt, ...)
 #ifdef FUZZ
       if (debug == LOG_LEVEL_STFU)
       {
+         if (loglevel == LOG_LEVEL_FATAL)
+         {
+            exit(1);
+         }
          return;
       }
 #endif