Invalidate any address/port vars in the conf that uses a sequence
without quotes.
pull/270/head^2
Anoop Saldanha 12 years ago committed by Victor Julien
parent 51868f17ae
commit f59ce70c17

@ -1250,6 +1250,14 @@ int DetectAddressTestConfVars(void)
goto error;
}
if (seq_node->val == NULL) {
SCLogError(SC_ERR_INVALID_YAML_CONF_ENTRY,
"Address var \"%s\" probably has a sequence(something "
"in brackets) value set without any quotes. Please "
"quote it using \"..\".", seq_node->name);
goto error;
}
int r = DetectAddressParse2(gh, ghn, seq_node->val, /* start with negate no */0);
if (r < 0) {
SCLogError(SC_ERR_INVALID_YAML_CONF_ENTRY,

@ -1308,6 +1308,14 @@ int DetectPortTestConfVars(void)
}
DetectPort *ghn = NULL;
if (seq_node->val == NULL) {
SCLogError(SC_ERR_INVALID_YAML_CONF_ENTRY,
"Port var \"%s\" probably has a sequence(something "
"in brackets) value set without any quotes. Please "
"quote it using \"..\".", seq_node->name);
goto error;
}
int r = DetectPortParseDo(&gh, &ghn, seq_node->val, /* start with negate no */0);
if (r < 0) {
goto error;

Loading…
Cancel
Save