From: Victor Julien Date: Thu, 28 Mar 2024 14:46:34 +0000 (+0100) Subject: smtp: minor debug cleanup X-Git-Tag: suricata-8.0.0-beta1~1446 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f27f2a817c81979ae70601236b0f2a121d3ddfd;p=thirdparty%2Fsuricata.git smtp: minor debug cleanup --- diff --git a/src/app-layer-smtp.c b/src/app-layer-smtp.c index b9e0297883..5fc59cfa7f 100644 --- a/src/app-layer-smtp.c +++ b/src/app-layer-smtp.c @@ -524,7 +524,7 @@ int SMTPProcessDataChunk(const uint8_t *chunk, uint32_t len, /* Open file if necessary */ if (state->body_begin) { - +#ifdef DEBUG if (SCLogDebugEnabled()) { SCLogDebug("Opening file...%u bytes", len); printf("File - "); @@ -533,7 +533,7 @@ int SMTPProcessDataChunk(const uint8_t *chunk, uint32_t len, } printf("\n"); } - +#endif /* Set storage flag if applicable since only the first file in the * flow seems to be processed by the 'filestore' detector */ if (files->head != NULL && (files->head->flags & FILE_STORE)) {