mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 13:26:01 +03:00
Fix ip tree lookup on netmask content
This commit is contained in:
parent
202a15bea8
commit
95048d5fcf
2
CHANGES
2
CHANGES
@ -1,6 +1,8 @@
|
||||
v3.0.3 - YYYY-MMM-DD (to be released)
|
||||
-------------------------------------
|
||||
|
||||
- Fix ip tree lookup on netmask content
|
||||
[Issue #1793 - @tinselcity, @zimmerle]
|
||||
- Changes the behavior of the default sec actions
|
||||
[Issue #1629 - @mirkodziadzka-avi, @zimmerle, @victorhora]
|
||||
- Refactoring on {global,ip,resources,session,tx,user} collections
|
||||
|
@ -755,7 +755,7 @@ TreeNode *CPTFindElement(unsigned char *ipdata, unsigned int ip_bitmask, CPTTree
|
||||
return node;
|
||||
}
|
||||
|
||||
if (memcmp(node->prefix->buffer, temp_data, bytes) == 0) {
|
||||
if ((node->netmasks == NULL) && memcmp(node->prefix->buffer, temp_data, bytes) == 0) {
|
||||
mask = SHIFT_LEFT_MASK(8 - ip_bitmask % 8);
|
||||
|
||||
if ((ip_bitmask % 8) == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user