From c78a3a27b574d049a155542724134f01648d7aac Mon Sep 17 00:00:00 2001
From: Fabian Keil <fk@fabiankeil.de>
Date: Mon, 8 Feb 2021 15:58:03 +0100
Subject: [PATCH] log_error(): Treat LOG_LEVEL_FATAL as fatal even when --stfu
 is being used

Reported by: Joshua Rogers (Opera).
---
 errlog.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/errlog.c b/errlog.c
index e9aba277..a9cfb8ca 100644
--- 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
-- 
2.49.0