general: Improve grammar in error messages

This commit corrects a minor grammar issue in address/port error
messages.
pull/5361/head
Jeff Lucovsky 5 years ago committed by Victor Julien
parent 57a611b429
commit 9efb936697

@ -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;
}

@ -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;

Loading…
Cancel
Save