diff --git a/src/app-layer-ftp.c b/src/app-layer-ftp.c index d0231b46ac..45e124bd28 100644 --- a/src/app-layer-ftp.c +++ b/src/app-layer-ftp.c @@ -645,6 +645,7 @@ static AppLayerResult FTPParseRequest(Flow *f, void *ftp_state, AppLayerParserSt FTPFree(state->port_line, state->port_line_size); state->port_line = NULL; state->port_line_size = 0; + state->port_line_len = 0; } SCReturnStruct(APP_LAYER_OK); }