]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
output-lua: sync variable name with yaml
authorEric Leblond <eric@regit.org>
Thu, 28 May 2015 05:02:12 +0000 (07:02 +0200)
committerVictor Julien <victor@inliniac.net>
Sat, 30 May 2015 09:00:17 +0000 (11:00 +0200)
'script-dir' was used in the code but we had 'scripts-dir' in the
configuration file. This patch fixes it to 'scripts-dir'.

src/output-lua.c

index 7f7514eef46022c2eba148f0aada00c8b970b650..fc075cd3149aff4a674657e9c00f9fcf351c9819 100644 (file)
@@ -692,7 +692,7 @@ static void LogLuaMasterFree(OutputCtx *oc) {
  */
 static OutputCtx *OutputLuaLogInit(ConfNode *conf)
 {
-    const char *dir = ConfNodeLookupChildValue(conf, "script-dir");
+    const char *dir = ConfNodeLookupChildValue(conf, "scripts-dir");
     if (dir == NULL)
         dir = "";