Add a new setup return code, -4 which will print the error, but not
error out in test mode. This is to support allowing incomplete hex, as
there is no context as to which rule had the issue.
For context:
- -3: error ok, no message
- -2: error not ok, no message
- -4: error ok, message
sig->gid = 1;
int ret = SigParse(de_ctx, sig, sigstr, dir, &parser);
- if (ret == -3) {
+ if (ret == -4) {
+ de_ctx->sigerror_ok = true;
+ goto error;
+ }
+ else if (ret == -3) {
de_ctx->sigerror_silent = true;
de_ctx->sigerror_ok = true;
goto error;