From: Jeff Lucovsky Date: Thu, 17 Jun 2021 12:54:30 +0000 (-0400) Subject: error: Add error code for sig-related diagnostics X-Git-Tag: suricata-6.0.5~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f68fc946a5117a9d695500fa13f8592aa86bdd4;p=thirdparty%2Fsuricata.git error: Add error code for sig-related diagnostics This commit adds an error code for the diagnostic code used for diagnostic messages following unexpected termination due to signals.. (cherry picked from commit 501c870a2c176a053f090f7f2535dd989153db4c) --- diff --git a/src/util-error.c b/src/util-error.c index d004d22b38..b39e05a907 100644 --- a/src/util-error.c +++ b/src/util-error.c @@ -379,6 +379,7 @@ const char * SCErrorToString(SCError err) CASE_CODE(SC_ERR_RULE_INVALID_UTF8); CASE_CODE(SC_WARN_CHOWN); CASE_CODE(SC_ERR_HASH_ADD); + CASE_CODE(SC_ERR_SIGNAL); CASE_CODE (SC_ERR_MAX); } diff --git a/src/util-error.h b/src/util-error.h index 07e0078c70..3387c74ae8 100644 --- a/src/util-error.h +++ b/src/util-error.h @@ -369,6 +369,7 @@ typedef enum { SC_ERR_RULE_INVALID_UTF8, SC_WARN_CHOWN, SC_ERR_HASH_ADD, + SC_ERR_SIGNAL, SC_ERR_MAX } SCError;