]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/dns.opcode: improve error reporting
authorVictor Julien <victor@inliniac.net>
Tue, 17 Sep 2019 08:41:59 +0000 (10:41 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 17 Sep 2019 08:41:59 +0000 (10:41 +0200)
src/detect-dns-opcode.c

index 1d90b0668ba1977106e3010daf7ba1de94d5fc33..68edcdca4106a244baa3697a6dc25b1ebd59073c 100644 (file)
@@ -38,7 +38,8 @@ static int DetectDnsOpcodeSetup(DetectEngineCtx *de_ctx, Signature *s,
 
     void *detect = rs_detect_dns_opcode_parse(str);
     if (detect == NULL) {
-        SCLogNotice("Failed to parse dns.opcode: %s", str);
+        SCLogError(SC_ERR_INVALID_RULE_ARGUMENT,
+                "failed to parse dns.opcode: %s", str);
         return -1;
     }