Skip to content

Cleanups/v6#15734

Open
victorjulien wants to merge 12 commits into
OISF:mainfrom
victorjulien:cleanups/v6
Open

Cleanups/v6#15734
victorjulien wants to merge 12 commits into
OISF:mainfrom
victorjulien:cleanups/v6

Conversation

@victorjulien

Copy link
Copy Markdown
Member

Misc cleanups.

Replaces #15725.

Rename progress vars.
Don't allow trailing :
It used the alstate name where it meant tx.
Fixes: 833a738 ("http: fail tx creation if we cannot allocate user data")
Since pstate can't be NULL, remove the conditional logic.
In almost every case, if there is a alstate there is also a pstate. So
remove the conditional pstate handling, and replace it by
unconditionally using the pointer. Add debug validation to make sure the
assumption is and stays correct.

Explicitly handle the one exception in AppLayerParserParse, which
follows an error before the pstate is allocated, or when pstate
allocation itself fails.
@victorjulien victorjulien mentioned this pull request Jun 26, 2026
@suricata-qa

Copy link
Copy Markdown

WARNING:

field baseline test %
SURI_TLPR1_stats_chk
.app_layer.flow.ftp_data 760 884 116.32%
.app_layer.error.ftp.parser 17 0 -

Pipeline = 32264

@victorjulien victorjulien added this to the 9.0 milestone Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants