]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Fix Bug #1204
authorZachary Rasmor <zachary.r.rasmor@lmco.com>
Fri, 24 Apr 2015 18:28:32 +0000 (14:28 -0400)
committerVictor Julien <victor@inliniac.net>
Thu, 7 May 2015 12:36:30 +0000 (14:36 +0200)
Fix typo that causes eve syslog settings code to be unreachable.

src/output-json.c

index aec2f67c4e733b50a8fce48832544a53ff1984b3..78a915d4226756c89665fe65474783f884553a2c 100644 (file)
@@ -479,7 +479,7 @@ OutputCtx *OutputJsonInitCtx(ConfNode *conf)
                     exit(EXIT_FAILURE);
                 }
             }
-        } else if (json_out == ALERT_SYSLOG) {
+        } else if (json_ctx->json_out == ALERT_SYSLOG) {
             const char *facility_s = ConfNodeLookupChildValue(conf, "facility");
             if (facility_s == NULL) {
                 facility_s = DEFAULT_ALERT_SYSLOG_FACILITY_STR;