From 5a655dda1c3b666adf552fd50f5ebf5f4cbd3ce7 Mon Sep 17 00:00:00 2001 From: Giovanni Dante Grazioli Date: Tue, 21 Jul 2020 15:51:02 +0200 Subject: Fixed issue on impossible bailout. --- src/sp_utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/sp_utils.c b/src/sp_utils.c index b9078b4..146fe77 100644 --- a/src/sp_utils.c +++ b/src/sp_utils.c @@ -51,6 +51,7 @@ void sp_log_msg(char const* restrict feature, int type, const char* client_ip = get_ipaddr(); const char* logtype = NULL; + int bailout = type == SP_LOG_DROP; switch(type) { case SP_LOG_SIMULATION: logtype = "simulation"; @@ -74,7 +75,7 @@ void sp_log_msg(char const* restrict feature, int type, syslog(syslog_level, "[snuffleupagus][%s][%s][%s] %s in %s on line %d", client_ip, feature, logtype, msg, error_filename, error_lineno); closelog(); - if (type == SP_LOG_DROP) { + if (bailout) { zend_bailout(); } break; -- cgit v1.3