We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60be4aa commit 61f2ff1Copy full SHA for 61f2ff1
CHANGES
@@ -1,6 +1,8 @@
1
v3.0.x - YYYY-MMM-DD (To be released)
2
-------------------------------------
3
4
+ - Fix: avoids crash if UNIQUE_ID is not set
5
+ [Issue #46 - @Goron1606, @victorhora, @zimmerle]
6
- Proposed fix for msc_process_request_body call too early
7
[Issue #22 - @victorhora]
8
- Adds make install to the build system
src/mod_security3.c
@@ -146,7 +146,7 @@ static msc_t *create_tx_context(request_rec *r) {
146
147
msr->r = r;
148
unique_id = getenv("UNIQUE_ID");
149
- if (unique_id != NULL || strlen(unique_id) > 0) {
+ if (unique_id != NULL && strlen(unique_id) > 0) {
150
msr->t = msc_new_transaction_with_id(msc_apache->modsec,
151
(Rules *)z->rules_set, unique_id, (void *)r);
152
} else {
0 commit comments