]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
eve: spelling
authorVictor Julien <vjulien@oisf.net>
Sat, 6 May 2023 04:55:19 +0000 (06:55 +0200)
committerVictor Julien <vjulien@oisf.net>
Sat, 6 May 2023 12:50:43 +0000 (14:50 +0200)
src/output-json-dns.c
src/output-json-drop.c
src/output-json-email-common.c
src/output-json-file.c
src/output-json-netflow.c

index 40ffa6460209345668fa4366ad59b1ce92432c42..d5729c85961c8133d09fa33be981aedcdd8b5b86 100644 (file)
@@ -387,7 +387,7 @@ static TmEcode LogDnsLogThreadInit(ThreadVars *t, const void *initdata, void **d
         goto error_exit;
     }
 
-    /* Use the Ouptut Context (file pointer and mutex) */
+    /* Use the Output Context (file pointer and mutex) */
     aft->dnslog_ctx = ((OutputCtx *)initdata)->data;
     aft->ctx = CreateEveThreadCtx(t, aft->dnslog_ctx->eve_ctx);
     if (!aft->ctx) {
index 962358ab6186589d963af346f1150cb7a95e961d..4e6048b5333648a8239965504cafd9e7e87b778e 100644 (file)
@@ -200,7 +200,7 @@ static TmEcode JsonDropLogThreadInit(ThreadVars *t, const void *initdata, void *
         goto error_exit;
     }
 
-    /** Use the Ouptut Context (file pointer and mutex) */
+    /** Use the Output Context (file pointer and mutex) */
     aft->drop_ctx = ((OutputCtx *)initdata)->data;
     aft->ctx = CreateEveThreadCtx(t, aft->drop_ctx->eve_ctx);
     if (!aft->ctx) {
index cb21a85e7d9a62ab3cc72ee88135662f18ea0d71..31d8557585798b7ff2999b916008650ccd0a2cd7 100644 (file)
@@ -285,9 +285,9 @@ static bool EveEmailLogJsonData(const Flow *f, void *state, void *vtx, uint64_t
         }
 
         entity = (MimeDecEntity *)mime_state->stack->top->data;
-        int attch_cnt = 0;
+        int attach_cnt = 0;
         int url_cnt = 0;
-        JsonBuilder *js_attch = jb_new_array();
+        JsonBuilder *js_attach = jb_new_array();
         JsonBuilder *js_url = jb_new_array();
         if (entity->url_list != NULL) {
             MimeDecUrl *url;
@@ -318,9 +318,9 @@ static bool EveEmailLogJsonData(const Flow *f, void *state, void *vtx, uint64_t
 
                 char *s = BytesToString((uint8_t *)entity->filename,
                                         (size_t)entity->filename_len);
-                jb_append_string(js_attch, s);
+                jb_append_string(js_attach, s);
                 SCFree(s);
-                attch_cnt += 1;
+                attach_cnt += 1;
             }
             if (entity->url_list != NULL) {
                 MimeDecUrl *url;
@@ -335,11 +335,11 @@ static bool EveEmailLogJsonData(const Flow *f, void *state, void *vtx, uint64_t
                 }
             }
         }
-        if (attch_cnt > 0) {
-            jb_close(js_attch);
-            jb_set_object(sjs, "attachment", js_attch);
+        if (attach_cnt > 0) {
+            jb_close(js_attach);
+            jb_set_object(sjs, "attachment", js_attach);
         }
-        jb_free(js_attch);
+        jb_free(js_attach);
         if (url_cnt > 0) {
             jb_close(js_url);
             jb_set_object(sjs, "url", js_url);
index 2f23ac17858014d33ead0a8a7a896950f3b58e7f..540e1be001f7ce7f8c49bb29e46e492f885ce900 100644 (file)
@@ -243,7 +243,7 @@ static TmEcode JsonFileLogThreadInit(ThreadVars *t, const void *initdata, void *
         goto error_exit;
     }
 
-    /* Use the Ouptut Context (file pointer and mutex) */
+    /* Use the Output Context (file pointer and mutex) */
     aft->filelog_ctx = ((OutputCtx *)initdata)->data;
     aft->ctx = CreateEveThreadCtx(t, aft->filelog_ctx->eve_ctx);
     if (!aft->ctx) {
index 29d96839a5b2aaf933c2ad46bb9f5ef0fc98a350..de9dbdb4ec84a01210ad021e615dac3f542aec46 100644 (file)
@@ -20,7 +20,7 @@
  *
  * \author Victor Julien <victor@inliniac.net>
  *
- * Implements Unidirectiontal NetFlow JSON logging portion of the engine.
+ * Implements Unidirectional NetFlow JSON logging portion of the engine.
  */
 
 #include "suricata-common.h"