]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
ftp: disables debug assertion
authorPhilippe Antoine <pantoine@oisf.net>
Mon, 5 Dec 2022 09:42:58 +0000 (10:42 +0100)
committerVictor Julien <vjulien@oisf.net>
Tue, 6 Dec 2022 13:11:28 +0000 (14:11 +0100)
Ticket: #5443

Until we decide on the right way to fix this.

src/app-layer-ftp.c

index 8980b6ccc4b18941f90c6f568766bf3486003245..74f1716557682dd1470d785b057e9872aea161a9 100644 (file)
@@ -1148,7 +1148,8 @@ static AppLayerResult FTPDataParse(Flow *f, FtpDataState *ftpdata_state,
     } else {
         if (ftpdata_state->state == FTPDATA_STATE_FINISHED) {
             SCLogDebug("state is already finished");
-            DEBUG_VALIDATE_BUG_ON(input_len); // data after state finished is a bug.
+            // TODO put back the assert after deciding on the bug...
+            // DEBUG_VALIDATE_BUG_ON(input_len); // data after state finished is a bug.
             SCReturnStruct(APP_LAYER_OK);
         }
         if ((direction & ftpdata_state->direction) == 0) {