Skip to content

Move xmlFree() call to the right place #3199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

airween
Copy link
Member

@airween airween commented Jul 25, 2024

what

v2/master branch contains a bug after #3120: the xmlFree() function call was at a wrong place.

This patch fixes it.

why

The wrong call produces this behavior:

Executing operator "streq" with param "signin" against XML:/myxml/path.
Target value: "P[as0(twq21"

so the target was some trash.

@airween airween requested a review from marcstern July 25, 2024 19:05
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@airween airween merged commit 3660184 into owasp-modsecurity:v2/master Jul 26, 2024
40 of 41 checks passed
@marcstern marcstern added the 2.x Related to ModSecurity version 2.x label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Related to ModSecurity version 2.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants