]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
output/flow: Use helpers for string output
authorJeff Lucovsky <jeff@lucovsky.org>
Fri, 12 Jun 2020 14:12:15 +0000 (10:12 -0400)
committerVictor Julien <victor@inliniac.net>
Sun, 28 Jun 2020 10:54:34 +0000 (12:54 +0200)
src/output-json-flow.c

index cd0014785d74bc7b4d86d9ddf255bac310700a92..3d8ace617db9e5f803bc3432428bc3a29fd4d2db 100644 (file)
@@ -252,11 +252,11 @@ static void EveFlowLogJSON(JsonFlowLogThread *aft, JsonBuilder *jb, Flow *f)
         int flow_state = SC_ATOMIC_GET(f->flow_state);
         switch (flow_state) {
             case FLOW_STATE_LOCAL_BYPASSED:
-                jb_set_string(jb, "bypass", "local");
+                JB_SET_STRING(jb, "bypass", "local");
                 break;
 #ifdef CAPTURE_OFFLOAD
             case FLOW_STATE_CAPTURE_BYPASSED:
-                jb_set_string(jb, "bypass", "capture");
+                JB_SET_STRING(jb, "bypass", "capture");
                 break;
 #endif
             default: