mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Fix ip tree lookup on netmask content
This commit is contained in:
parent
71f650ad48
commit
f66cd4111f
2
CHANGES
2
CHANGES
@ -1,6 +1,8 @@
|
||||
DD MMM YYYY - 2.9.3 - To be released
|
||||
------------------------------------
|
||||
|
||||
* Fix ip tree lookup on netmask content
|
||||
[Issue #1793 - @tinselcity, @zimmerle]
|
||||
* IIS: set overrideModeDefault to Allow so that individual websites can
|
||||
add <ModSecurity ...> to their web.config file
|
||||
[Issue #1781 - @default-kramer]
|
||||
|
@ -755,7 +755,7 @@ TreeNode *CPTFindElement(modsec_rec *msr, unsigned char *ipdata, unsigned int ip
|
||||
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