Skip to content
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

Move id_log() to msc_util to fix unit tests; it is declared on msc_ut… #3265

Merged

Conversation

rainerjung
Copy link

@rainerjung rainerjung commented Oct 1, 2024

The previous move of id_log() from re.c to apache2_config.c broke running the unit tests. The binary msc_test does not have apache2_config.c as a dependency in tests/Makefile so when linking you get an undefined symbol. And if you add apache2_config.c to the msc_test dependencies, even more undefined symbols now needed by apache2_config.c show up.

Since id_log() is already declared in msc_util.h, it seems right to move it to msc_util.c. And indeed this fixes the problem.

Copy link

sonarcloud bot commented Oct 1, 2024

@marcstern marcstern merged commit d6f1ebb into owasp-modsecurity:v2/master Oct 2, 2024
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants