]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
smtp: minor debug cleanup
authorVictor Julien <vjulien@oisf.net>
Thu, 28 Mar 2024 14:46:34 +0000 (15:46 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 19 Apr 2024 18:51:24 +0000 (20:51 +0200)
src/app-layer-smtp.c

index b9e029788360f17d79eae2118ed99b645943eba8..5fc59cfa7f6287e8b3c455d2d2f583274b58a474 100644 (file)
@@ -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)) {