]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
error: Add SC_EEXIST for dups
authorJeff Lucovsky <jlucovsky@oisf.net>
Wed, 14 Jun 2023 12:40:26 +0000 (08:40 -0400)
committerVictor Julien <victor@inliniac.net>
Sun, 30 Jul 2023 12:22:52 +0000 (14:22 +0200)
Issue: 5748

This commit adds SC_EEXIST to be used for cases where an
item/resource/artifact with the same attributes already exists.

src/util-error.c
src/util-error.h

index 617ab161fe8f341b2cf17e703860672dca7c39cc..01c2f9a01b73f9862d39b1480d59baa2bae479a9 100644 (file)
@@ -46,6 +46,7 @@ const char * SCErrorToString(SCError err)
         CASE_CODE(SC_ENOMEM);
         CASE_CODE(SC_EINVAL);
         CASE_CODE(SC_ELIMIT);
+        CASE_CODE(SC_EEXIST);
 
         CASE_CODE (SC_ERR_MAX);
     }
index 257dcc07c4652999a64506bf4007ab910faf0c83..eaaf8cb34a2afb537569bd82c1f6d240bdc00f46 100644 (file)
@@ -29,6 +29,7 @@ typedef enum {
     SC_ENOMEM,
     SC_EINVAL,
     SC_ELIMIT,
+    SC_EEXIST,
 
     SC_ERR_MAX
 } SCError;