forked from open-policy-agent/opa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
net.cidr_contains
for partial match cases
The calculation for the last ip of a block had a typo switching the buffer we created the last ip address from.. This meant we always returned the first IP address in the range as the last one. There was also a gap in the unit tests for these cases. Both are corrected with this patch. Fixes: open-policy-agent#1303 Signed-off-by: Patrick East <east.patrick@gmail.com>
- Loading branch information
1 parent
66b9b54
commit e754288
Showing
2 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters