]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
log: use SCLogError instead of fprintf
authorPhilippe Antoine <contact@catenacyber.fr>
Wed, 3 Jul 2019 13:33:15 +0000 (15:33 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 3 Jul 2019 15:06:41 +0000 (17:06 +0200)
src/detect-parse.c

index 5ef1cb7c49e7244aff3c8ba35ea64fe4205c9f90..05d38302e5f21ef93669dfdcd246918e843bac8e 100644 (file)
@@ -1078,7 +1078,7 @@ static int SigParseBasics(DetectEngineCtx *de_ctx,
 
     /* Options. */
     if (index == NULL) {
-        fprintf(stderr, "no rule options.\n");
+        SCLogError(SC_ERR_INVALID_RULE_ARGUMENT, "no rule options.");
         goto error;
     }
     while (isspace(*index) || *index == '(') {