File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
v3.0.x - YYYY-MMM-DD (To be released)
2
2
-------------------------------------
3
3
4
+ - Fix: avoids crash if UNIQUE_ID is not set
5
+ [Issue #46 - @Goron1606, @victorhora, @zimmerle]
4
6
- Proposed fix for msc_process_request_body call too early
5
7
[Issue #22 - @victorhora]
6
8
- Adds make install to the build system
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ static msc_t *create_tx_context(request_rec *r) {
146
146
147
147
msr -> r = r ;
148
148
unique_id = getenv ("UNIQUE_ID" );
149
- if (unique_id != NULL || strlen (unique_id ) > 0 ) {
149
+ if (unique_id != NULL && strlen (unique_id ) > 0 ) {
150
150
msr -> t = msc_new_transaction_with_id (msc_apache -> modsec ,
151
151
(Rules * )z -> rules_set , unique_id , (void * )r );
152
152
} else {
You can’t perform that action at this time.
0 commit comments