]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
general: Improve grammar in error messages
authorJeff Lucovsky <jeff@lucovsky.org>
Thu, 6 Aug 2020 12:34:45 +0000 (08:34 -0400)
committerVictor Julien <victor@inliniac.net>
Fri, 4 Sep 2020 11:13:38 +0000 (13:13 +0200)
This commit corrects a minor grammar issue in address/port error
messages.

src/detect-engine-address.c
src/detect-engine-port.c

index f8e3004f01c58f18d4591450fb0fdfaf673da134..d422ea60a3f9a50a1a6abb42f550b021d5d12165 100644 (file)
@@ -1264,17 +1264,19 @@ int DetectAddressTestConfVars(void)
 
         if (r < 0) {
             SCLogError(SC_ERR_INVALID_YAML_CONF_ENTRY,
-                        "failed to parse address var \"%s\" with value \"%s\". "
-                        "Please check it's syntax", seq_node->name, seq_node->val);
+                    "failed to parse address var \"%s\" with value \"%s\". "
+                    "Please check its syntax",
+                    seq_node->name, seq_node->val);
             goto error;
         }
 
         if (DetectAddressIsCompleteIPSpace(ghn)) {
             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 "
-                       "a NULL address range", seq_node->name, seq_node->val);
+                    "address var - \"%s\" has the complete IP space negated "
+                    "with its value \"%s\".  Rule address range is NIL. "
+                    "Probably have a !any or an address range that supplies "
+                    "a NULL address range",
+                    seq_node->name, seq_node->val);
             goto error;
         }
 
index 88fb5b23cd875e51a495787d66e18336388425fc..43a68f3256ef49171d14debc2211d1874b3a4c57 100644 (file)
@@ -1200,17 +1200,19 @@ int DetectPortTestConfVars(void)
         if (r < 0) {
             DetectPortCleanupList(NULL, gh);
             SCLogError(SC_ERR_INVALID_YAML_CONF_ENTRY,
-                        "failed to parse port var \"%s\" with value \"%s\". "
-                        "Please check it's syntax", seq_node->name, seq_node->val);
+                    "failed to parse port var \"%s\" with value \"%s\". "
+                    "Please check its syntax",
+                    seq_node->name, seq_node->val);
             goto error;
         }
 
         if (DetectPortIsCompletePortSpace(ghn)) {
             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 "
-                       "a NULL address range", seq_node->name, seq_node->val);
+                    "Port var - \"%s\" has the complete Port range negated "
+                    "with its value \"%s\".  Port space range is NIL. "
+                    "Probably have a !any or a port range that supplies "
+                    "a NULL address range",
+                    seq_node->name, seq_node->val);
             DetectPortCleanupList(NULL, gh);
             DetectPortCleanupList(NULL, ghn);
             goto error;