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) {
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) {
}
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;
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;
}
}
}
- 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);
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) {
*
* \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"