]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
bug #454 - rebase fix. Also use better error code to indicate invalid address var...
authorAnoop Saldanha <poonaatsoc@gmail.com>
Mon, 21 May 2012 19:25:02 +0000 (00:55 +0530)
committerVictor Julien <victor@inliniac.net>
Tue, 22 May 2012 07:22:10 +0000 (09:22 +0200)
src/detect-engine-address.c
src/detect-engine-port.c
src/util-error.c

index ac71a321be237e080e07d50205fe94be41156198..a1c091cd9249221f4c0faf289f9bba268839d087 100644 (file)
@@ -1257,7 +1257,7 @@ int DetectAddressTestConfVars(void)
         }
 
         if (DetectAddressIsCompleteIPSpace(ghn)) {
-            SCLogError(SC_ERR_ADDRESS_ENGINE_GENERIC,
+            SCLogError(SC_ERR_INVALID_YAML_CONF_ENTRY,
                        "Address var - \"%s\" has the complete IP space negated "
                        "with it's value \"%s\".  Rule address range is NIL. "
                        "Probably have a !any or an address range that supplies "
index 07295aeb3d87fa74ea61fce5a79131fbb0cba2f9..2b231b3c3751bf0a14699d1157525999b75a1120 100644 (file)
@@ -1314,7 +1314,7 @@ int DetectPortTestConfVars(void)
         }
 
         if (DetectPortIsCompletePortSpace(ghn)) {
-            SCLogError(SC_ERR_PORT_ENGINE_GENERIC,
+            SCLogError(SC_ERR_INVALID_YAML_CONF_ENTRY,
                        "Port var - \"%s\" has the complete Port range negated "
                        "with it's value \"%s\".  Port space range is NIL. "
                        "Probably have a !any or a port range that supplies "
index 80e6377aeafce00f7d17d59df2af76f2b7f2a6ef..9ef6a1a65c5a5cad9fb74f48e98591cc8de4dbdd 100644 (file)
@@ -102,7 +102,6 @@ const char * SCErrorToString(SCError err)
         CASE_CODE (SC_ERR_ADDRESS_ENGINE_GENERIC);
         CASE_CODE (SC_ERR_PORT_ENGINE_GENERIC);
         CASE_CODE (SC_ERR_FAST_LOG_GENERIC);
-        CASE_CODE (SC_ERR_ADDRESS_ENGINE_GENERIC);
         CASE_CODE (SC_ERR_IPONLY_RADIX);
         CASE_CODE (SC_ERR_DEBUG_LOG_GENERIC);
         CASE_CODE (SC_ERR_UNIFIED_LOG_GENERIC);