From: Eric Leblond Date: Wed, 14 Oct 2015 11:48:29 +0000 (+0200) Subject: json-email-common: suppress commented code X-Git-Tag: suricata-3.0RC1~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3676bd667d494ac93c29e1092715435c052eef31;p=thirdparty%2Fsuricata.git json-email-common: suppress commented code --- diff --git a/src/output-json-email-common.c b/src/output-json-email-common.c index dc62832865..0575506969 100644 --- a/src/output-json-email-common.c +++ b/src/output-json-email-common.c @@ -271,7 +271,6 @@ json_t *JsonEmailLogJsonData(const Flow *f, void *state, void *vtx, uint64_t tx_ json_string(MimeDecParseStateGetStatus(mime_state))); MimeDecField *field; - //printf("email LOG\n"); /* From: */ field = MimeDecFindField(entity, "from"); @@ -318,7 +317,6 @@ json_t *JsonEmailLogJsonData(const Flow *f, void *state, void *vtx, uint64_t tx_ char *s = BytesToString((uint8_t *)url->url, (size_t)url->url_len); if (s != NULL) { - //printf("URL: \"%s\"\n", s); json_array_append_new(js_url, json_string(s)); SCFree(s); @@ -331,7 +329,6 @@ json_t *JsonEmailLogJsonData(const Flow *f, void *state, void *vtx, uint64_t tx_ char *s = BytesToString((uint8_t *)entity->filename, (size_t)entity->filename_len); - //printf("found attachment \"%s\"\n", s); json_array_append_new(js_attch, json_string(s)); SCFree(s); @@ -343,7 +340,6 @@ json_t *JsonEmailLogJsonData(const Flow *f, void *state, void *vtx, uint64_t tx_ char *s = BytesToString((uint8_t *)url->url, (size_t)url->url_len); if (s != NULL) { - //printf("URL: \"%s\"\n", s); json_array_append_new(js_url, json_string(s)); SCFree(s); @@ -362,12 +358,10 @@ json_t *JsonEmailLogJsonData(const Flow *f, void *state, void *vtx, uint64_t tx_ } else { json_decref(js_url); } -// FLOWLOCK_UNLOCK(p->flow); SCReturnPtr(sjs, "json_t"); } json_decref(sjs); -// FLOWLOCK_UNLOCK(p->flow); SCReturnPtr(NULL, "json_t"); }